Compare commits

..

1 Commits

Author SHA1 Message Date
sdk-team
3ad3e4b062 Change ListCheckInstanceResult Public. 2022-07-29 09:37:05 +00:00
31 changed files with 1569 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2022-07-29 Version: 1.36.1213
- Change ListCheckInstanceResult Public.
2022-07-28 Version: 1.36.1212
- AMP version.

View File

@@ -1 +1 @@
1.36.1212
1.36.1213

View File

@@ -21,6 +21,8 @@ set(sas_public_header
include/alibabacloud/sas/SasExport.h )
set(sas_public_header_model
include/alibabacloud/sas/model/AddInstallCodeRequest.h
include/alibabacloud/sas/model/AddInstallCodeResult.h
include/alibabacloud/sas/model/AddVpcHoneyPotRequest.h
include/alibabacloud/sas/model/AddVpcHoneyPotResult.h
include/alibabacloud/sas/model/CheckQuaraFileIdRequest.h
@@ -109,6 +111,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeCloudCenterInstancesResult.h
include/alibabacloud/sas/model/DescribeCloudProductFieldStatisticsRequest.h
include/alibabacloud/sas/model/DescribeCloudProductFieldStatisticsResult.h
include/alibabacloud/sas/model/DescribeCommonOverallConfigRequest.h
include/alibabacloud/sas/model/DescribeCommonOverallConfigResult.h
include/alibabacloud/sas/model/DescribeConcernNecessityRequest.h
include/alibabacloud/sas/model/DescribeConcernNecessityResult.h
include/alibabacloud/sas/model/DescribeContainerStatisticsRequest.h
@@ -265,6 +269,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeSuspEventQuaraFilesResult.h
include/alibabacloud/sas/model/DescribeSuspEventsRequest.h
include/alibabacloud/sas/model/DescribeSuspEventsResult.h
include/alibabacloud/sas/model/DescribeSuspiciousOverallConfigRequest.h
include/alibabacloud/sas/model/DescribeSuspiciousOverallConfigResult.h
include/alibabacloud/sas/model/DescribeSuspiciousUUIDConfigRequest.h
include/alibabacloud/sas/model/DescribeSuspiciousUUIDConfigResult.h
include/alibabacloud/sas/model/DescribeUserBackupMachinesRequest.h
@@ -275,6 +281,8 @@ set(sas_public_header_model
include/alibabacloud/sas/model/DescribeUserLayoutAuthorizationResult.h
include/alibabacloud/sas/model/DescribeUuidsByVulNamesRequest.h
include/alibabacloud/sas/model/DescribeUuidsByVulNamesResult.h
include/alibabacloud/sas/model/DescribeVendorListRequest.h
include/alibabacloud/sas/model/DescribeVendorListResult.h
include/alibabacloud/sas/model/DescribeVersionConfigRequest.h
include/alibabacloud/sas/model/DescribeVersionConfigResult.h
include/alibabacloud/sas/model/DescribeVpcHoneyPotCriteriaRequest.h
@@ -393,6 +401,10 @@ set(sas_public_header_model
include/alibabacloud/sas/model/ModifyWebLockUpdateConfigResult.h
include/alibabacloud/sas/model/OperateAgentClientInstallRequest.h
include/alibabacloud/sas/model/OperateAgentClientInstallResult.h
include/alibabacloud/sas/model/OperateCommonOverallConfigRequest.h
include/alibabacloud/sas/model/OperateCommonOverallConfigResult.h
include/alibabacloud/sas/model/OperateSuspiciousOverallConfigRequest.h
include/alibabacloud/sas/model/OperateSuspiciousOverallConfigResult.h
include/alibabacloud/sas/model/OperateSuspiciousTargetConfigRequest.h
include/alibabacloud/sas/model/OperateSuspiciousTargetConfigResult.h
include/alibabacloud/sas/model/OperateVulsRequest.h
@@ -436,6 +448,8 @@ set(sas_public_header_model
set(sas_src
src/SasClient.cc
src/model/AddInstallCodeRequest.cc
src/model/AddInstallCodeResult.cc
src/model/AddVpcHoneyPotRequest.cc
src/model/AddVpcHoneyPotResult.cc
src/model/CheckQuaraFileIdRequest.cc
@@ -524,6 +538,8 @@ set(sas_src
src/model/DescribeCloudCenterInstancesResult.cc
src/model/DescribeCloudProductFieldStatisticsRequest.cc
src/model/DescribeCloudProductFieldStatisticsResult.cc
src/model/DescribeCommonOverallConfigRequest.cc
src/model/DescribeCommonOverallConfigResult.cc
src/model/DescribeConcernNecessityRequest.cc
src/model/DescribeConcernNecessityResult.cc
src/model/DescribeContainerStatisticsRequest.cc
@@ -680,6 +696,8 @@ set(sas_src
src/model/DescribeSuspEventQuaraFilesResult.cc
src/model/DescribeSuspEventsRequest.cc
src/model/DescribeSuspEventsResult.cc
src/model/DescribeSuspiciousOverallConfigRequest.cc
src/model/DescribeSuspiciousOverallConfigResult.cc
src/model/DescribeSuspiciousUUIDConfigRequest.cc
src/model/DescribeSuspiciousUUIDConfigResult.cc
src/model/DescribeUserBackupMachinesRequest.cc
@@ -690,6 +708,8 @@ set(sas_src
src/model/DescribeUserLayoutAuthorizationResult.cc
src/model/DescribeUuidsByVulNamesRequest.cc
src/model/DescribeUuidsByVulNamesResult.cc
src/model/DescribeVendorListRequest.cc
src/model/DescribeVendorListResult.cc
src/model/DescribeVersionConfigRequest.cc
src/model/DescribeVersionConfigResult.cc
src/model/DescribeVpcHoneyPotCriteriaRequest.cc
@@ -808,6 +828,10 @@ set(sas_src
src/model/ModifyWebLockUpdateConfigResult.cc
src/model/OperateAgentClientInstallRequest.cc
src/model/OperateAgentClientInstallResult.cc
src/model/OperateCommonOverallConfigRequest.cc
src/model/OperateCommonOverallConfigResult.cc
src/model/OperateSuspiciousOverallConfigRequest.cc
src/model/OperateSuspiciousOverallConfigResult.cc
src/model/OperateSuspiciousTargetConfigRequest.cc
src/model/OperateSuspiciousTargetConfigResult.cc
src/model/OperateVulsRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "SasExport.h"
#include "model/AddInstallCodeRequest.h"
#include "model/AddInstallCodeResult.h"
#include "model/AddVpcHoneyPotRequest.h"
#include "model/AddVpcHoneyPotResult.h"
#include "model/CheckQuaraFileIdRequest.h"
@@ -110,6 +112,8 @@
#include "model/DescribeCloudCenterInstancesResult.h"
#include "model/DescribeCloudProductFieldStatisticsRequest.h"
#include "model/DescribeCloudProductFieldStatisticsResult.h"
#include "model/DescribeCommonOverallConfigRequest.h"
#include "model/DescribeCommonOverallConfigResult.h"
#include "model/DescribeConcernNecessityRequest.h"
#include "model/DescribeConcernNecessityResult.h"
#include "model/DescribeContainerStatisticsRequest.h"
@@ -266,6 +270,8 @@
#include "model/DescribeSuspEventQuaraFilesResult.h"
#include "model/DescribeSuspEventsRequest.h"
#include "model/DescribeSuspEventsResult.h"
#include "model/DescribeSuspiciousOverallConfigRequest.h"
#include "model/DescribeSuspiciousOverallConfigResult.h"
#include "model/DescribeSuspiciousUUIDConfigRequest.h"
#include "model/DescribeSuspiciousUUIDConfigResult.h"
#include "model/DescribeUserBackupMachinesRequest.h"
@@ -276,6 +282,8 @@
#include "model/DescribeUserLayoutAuthorizationResult.h"
#include "model/DescribeUuidsByVulNamesRequest.h"
#include "model/DescribeUuidsByVulNamesResult.h"
#include "model/DescribeVendorListRequest.h"
#include "model/DescribeVendorListResult.h"
#include "model/DescribeVersionConfigRequest.h"
#include "model/DescribeVersionConfigResult.h"
#include "model/DescribeVpcHoneyPotCriteriaRequest.h"
@@ -394,6 +402,10 @@
#include "model/ModifyWebLockUpdateConfigResult.h"
#include "model/OperateAgentClientInstallRequest.h"
#include "model/OperateAgentClientInstallResult.h"
#include "model/OperateCommonOverallConfigRequest.h"
#include "model/OperateCommonOverallConfigResult.h"
#include "model/OperateSuspiciousOverallConfigRequest.h"
#include "model/OperateSuspiciousOverallConfigResult.h"
#include "model/OperateSuspiciousTargetConfigRequest.h"
#include "model/OperateSuspiciousTargetConfigResult.h"
#include "model/OperateVulsRequest.h"
@@ -443,6 +455,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_SAS_EXPORT SasClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddInstallCodeResult> AddInstallCodeOutcome;
typedef std::future<AddInstallCodeOutcome> AddInstallCodeOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::AddInstallCodeRequest&, const AddInstallCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddInstallCodeAsyncHandler;
typedef Outcome<Error, Model::AddVpcHoneyPotResult> AddVpcHoneyPotOutcome;
typedef std::future<AddVpcHoneyPotOutcome> AddVpcHoneyPotOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::AddVpcHoneyPotRequest&, const AddVpcHoneyPotOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddVpcHoneyPotAsyncHandler;
@@ -575,6 +590,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeCloudProductFieldStatisticsResult> DescribeCloudProductFieldStatisticsOutcome;
typedef std::future<DescribeCloudProductFieldStatisticsOutcome> DescribeCloudProductFieldStatisticsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeCloudProductFieldStatisticsRequest&, const DescribeCloudProductFieldStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCloudProductFieldStatisticsAsyncHandler;
typedef Outcome<Error, Model::DescribeCommonOverallConfigResult> DescribeCommonOverallConfigOutcome;
typedef std::future<DescribeCommonOverallConfigOutcome> DescribeCommonOverallConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeCommonOverallConfigRequest&, const DescribeCommonOverallConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCommonOverallConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeConcernNecessityResult> DescribeConcernNecessityOutcome;
typedef std::future<DescribeConcernNecessityOutcome> DescribeConcernNecessityOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeConcernNecessityRequest&, const DescribeConcernNecessityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConcernNecessityAsyncHandler;
@@ -809,6 +827,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSuspEventsResult> DescribeSuspEventsOutcome;
typedef std::future<DescribeSuspEventsOutcome> DescribeSuspEventsOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeSuspEventsRequest&, const DescribeSuspEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSuspEventsAsyncHandler;
typedef Outcome<Error, Model::DescribeSuspiciousOverallConfigResult> DescribeSuspiciousOverallConfigOutcome;
typedef std::future<DescribeSuspiciousOverallConfigOutcome> DescribeSuspiciousOverallConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeSuspiciousOverallConfigRequest&, const DescribeSuspiciousOverallConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSuspiciousOverallConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeSuspiciousUUIDConfigResult> DescribeSuspiciousUUIDConfigOutcome;
typedef std::future<DescribeSuspiciousUUIDConfigOutcome> DescribeSuspiciousUUIDConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeSuspiciousUUIDConfigRequest&, const DescribeSuspiciousUUIDConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSuspiciousUUIDConfigAsyncHandler;
@@ -824,6 +845,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeUuidsByVulNamesResult> DescribeUuidsByVulNamesOutcome;
typedef std::future<DescribeUuidsByVulNamesOutcome> DescribeUuidsByVulNamesOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeUuidsByVulNamesRequest&, const DescribeUuidsByVulNamesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUuidsByVulNamesAsyncHandler;
typedef Outcome<Error, Model::DescribeVendorListResult> DescribeVendorListOutcome;
typedef std::future<DescribeVendorListOutcome> DescribeVendorListOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeVendorListRequest&, const DescribeVendorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVendorListAsyncHandler;
typedef Outcome<Error, Model::DescribeVersionConfigResult> DescribeVersionConfigOutcome;
typedef std::future<DescribeVersionConfigOutcome> DescribeVersionConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::DescribeVersionConfigRequest&, const DescribeVersionConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVersionConfigAsyncHandler;
@@ -1001,6 +1025,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::OperateAgentClientInstallResult> OperateAgentClientInstallOutcome;
typedef std::future<OperateAgentClientInstallOutcome> OperateAgentClientInstallOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::OperateAgentClientInstallRequest&, const OperateAgentClientInstallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateAgentClientInstallAsyncHandler;
typedef Outcome<Error, Model::OperateCommonOverallConfigResult> OperateCommonOverallConfigOutcome;
typedef std::future<OperateCommonOverallConfigOutcome> OperateCommonOverallConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::OperateCommonOverallConfigRequest&, const OperateCommonOverallConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateCommonOverallConfigAsyncHandler;
typedef Outcome<Error, Model::OperateSuspiciousOverallConfigResult> OperateSuspiciousOverallConfigOutcome;
typedef std::future<OperateSuspiciousOverallConfigOutcome> OperateSuspiciousOverallConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::OperateSuspiciousOverallConfigRequest&, const OperateSuspiciousOverallConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateSuspiciousOverallConfigAsyncHandler;
typedef Outcome<Error, Model::OperateSuspiciousTargetConfigResult> OperateSuspiciousTargetConfigOutcome;
typedef std::future<OperateSuspiciousTargetConfigOutcome> OperateSuspiciousTargetConfigOutcomeCallable;
typedef std::function<void(const SasClient*, const Model::OperateSuspiciousTargetConfigRequest&, const OperateSuspiciousTargetConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OperateSuspiciousTargetConfigAsyncHandler;
@@ -1066,6 +1096,9 @@ namespace AlibabaCloud
SasClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
SasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~SasClient();
AddInstallCodeOutcome addInstallCode(const Model::AddInstallCodeRequest &request)const;
void addInstallCodeAsync(const Model::AddInstallCodeRequest& request, const AddInstallCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddInstallCodeOutcomeCallable addInstallCodeCallable(const Model::AddInstallCodeRequest& request) const;
AddVpcHoneyPotOutcome addVpcHoneyPot(const Model::AddVpcHoneyPotRequest &request)const;
void addVpcHoneyPotAsync(const Model::AddVpcHoneyPotRequest& request, const AddVpcHoneyPotAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddVpcHoneyPotOutcomeCallable addVpcHoneyPotCallable(const Model::AddVpcHoneyPotRequest& request) const;
@@ -1198,6 +1231,9 @@ namespace AlibabaCloud
DescribeCloudProductFieldStatisticsOutcome describeCloudProductFieldStatistics(const Model::DescribeCloudProductFieldStatisticsRequest &request)const;
void describeCloudProductFieldStatisticsAsync(const Model::DescribeCloudProductFieldStatisticsRequest& request, const DescribeCloudProductFieldStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCloudProductFieldStatisticsOutcomeCallable describeCloudProductFieldStatisticsCallable(const Model::DescribeCloudProductFieldStatisticsRequest& request) const;
DescribeCommonOverallConfigOutcome describeCommonOverallConfig(const Model::DescribeCommonOverallConfigRequest &request)const;
void describeCommonOverallConfigAsync(const Model::DescribeCommonOverallConfigRequest& request, const DescribeCommonOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCommonOverallConfigOutcomeCallable describeCommonOverallConfigCallable(const Model::DescribeCommonOverallConfigRequest& request) const;
DescribeConcernNecessityOutcome describeConcernNecessity(const Model::DescribeConcernNecessityRequest &request)const;
void describeConcernNecessityAsync(const Model::DescribeConcernNecessityRequest& request, const DescribeConcernNecessityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeConcernNecessityOutcomeCallable describeConcernNecessityCallable(const Model::DescribeConcernNecessityRequest& request) const;
@@ -1432,6 +1468,9 @@ namespace AlibabaCloud
DescribeSuspEventsOutcome describeSuspEvents(const Model::DescribeSuspEventsRequest &request)const;
void describeSuspEventsAsync(const Model::DescribeSuspEventsRequest& request, const DescribeSuspEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSuspEventsOutcomeCallable describeSuspEventsCallable(const Model::DescribeSuspEventsRequest& request) const;
DescribeSuspiciousOverallConfigOutcome describeSuspiciousOverallConfig(const Model::DescribeSuspiciousOverallConfigRequest &request)const;
void describeSuspiciousOverallConfigAsync(const Model::DescribeSuspiciousOverallConfigRequest& request, const DescribeSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSuspiciousOverallConfigOutcomeCallable describeSuspiciousOverallConfigCallable(const Model::DescribeSuspiciousOverallConfigRequest& request) const;
DescribeSuspiciousUUIDConfigOutcome describeSuspiciousUUIDConfig(const Model::DescribeSuspiciousUUIDConfigRequest &request)const;
void describeSuspiciousUUIDConfigAsync(const Model::DescribeSuspiciousUUIDConfigRequest& request, const DescribeSuspiciousUUIDConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSuspiciousUUIDConfigOutcomeCallable describeSuspiciousUUIDConfigCallable(const Model::DescribeSuspiciousUUIDConfigRequest& request) const;
@@ -1447,6 +1486,9 @@ namespace AlibabaCloud
DescribeUuidsByVulNamesOutcome describeUuidsByVulNames(const Model::DescribeUuidsByVulNamesRequest &request)const;
void describeUuidsByVulNamesAsync(const Model::DescribeUuidsByVulNamesRequest& request, const DescribeUuidsByVulNamesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUuidsByVulNamesOutcomeCallable describeUuidsByVulNamesCallable(const Model::DescribeUuidsByVulNamesRequest& request) const;
DescribeVendorListOutcome describeVendorList(const Model::DescribeVendorListRequest &request)const;
void describeVendorListAsync(const Model::DescribeVendorListRequest& request, const DescribeVendorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVendorListOutcomeCallable describeVendorListCallable(const Model::DescribeVendorListRequest& request) const;
DescribeVersionConfigOutcome describeVersionConfig(const Model::DescribeVersionConfigRequest &request)const;
void describeVersionConfigAsync(const Model::DescribeVersionConfigRequest& request, const DescribeVersionConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVersionConfigOutcomeCallable describeVersionConfigCallable(const Model::DescribeVersionConfigRequest& request) const;
@@ -1624,6 +1666,12 @@ namespace AlibabaCloud
OperateAgentClientInstallOutcome operateAgentClientInstall(const Model::OperateAgentClientInstallRequest &request)const;
void operateAgentClientInstallAsync(const Model::OperateAgentClientInstallRequest& request, const OperateAgentClientInstallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OperateAgentClientInstallOutcomeCallable operateAgentClientInstallCallable(const Model::OperateAgentClientInstallRequest& request) const;
OperateCommonOverallConfigOutcome operateCommonOverallConfig(const Model::OperateCommonOverallConfigRequest &request)const;
void operateCommonOverallConfigAsync(const Model::OperateCommonOverallConfigRequest& request, const OperateCommonOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OperateCommonOverallConfigOutcomeCallable operateCommonOverallConfigCallable(const Model::OperateCommonOverallConfigRequest& request) const;
OperateSuspiciousOverallConfigOutcome operateSuspiciousOverallConfig(const Model::OperateSuspiciousOverallConfigRequest &request)const;
void operateSuspiciousOverallConfigAsync(const Model::OperateSuspiciousOverallConfigRequest& request, const OperateSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OperateSuspiciousOverallConfigOutcomeCallable operateSuspiciousOverallConfigCallable(const Model::OperateSuspiciousOverallConfigRequest& request) const;
OperateSuspiciousTargetConfigOutcome operateSuspiciousTargetConfig(const Model::OperateSuspiciousTargetConfigRequest &request)const;
void operateSuspiciousTargetConfigAsync(const Model::OperateSuspiciousTargetConfigRequest& request, const OperateSuspiciousTargetConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
OperateSuspiciousTargetConfigOutcomeCallable operateSuspiciousTargetConfigCallable(const Model::OperateSuspiciousTargetConfigRequest& request) const;

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_ADDINSTALLCODEREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_ADDINSTALLCODEREQUEST_H_
#include <alibabacloud/sas/SasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Sas {
namespace Model {
class ALIBABACLOUD_SAS_EXPORT AddInstallCodeRequest : public RpcServiceRequest {
public:
AddInstallCodeRequest();
~AddInstallCodeRequest();
long getExpiredDate() const;
void setExpiredDate(long expiredDate);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getOs() const;
void setOs(const std::string &os);
long getGroupId() const;
void setGroupId(long groupId);
bool getOnlyImage() const;
void setOnlyImage(bool onlyImage);
std::string getVendorName() const;
void setVendorName(const std::string &vendorName);
private:
long expiredDate_;
std::string sourceIp_;
std::string os_;
long groupId_;
bool onlyImage_;
std::string vendorName_;
};
} // namespace Model
} // namespace Sas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SAS_MODEL_ADDINSTALLCODEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_ADDINSTALLCODERESULT_H_
#define ALIBABACLOUD_SAS_MODEL_ADDINSTALLCODERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT AddInstallCodeResult : public ServiceResult
{
public:
AddInstallCodeResult();
explicit AddInstallCodeResult(const std::string &payload);
~AddInstallCodeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_ADDINSTALLCODERESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBECOMMONOVERALLCONFIGREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECOMMONOVERALLCONFIGREQUEST_H_
#include <alibabacloud/sas/SasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Sas {
namespace Model {
class ALIBABACLOUD_SAS_EXPORT DescribeCommonOverallConfigRequest : public RpcServiceRequest {
public:
DescribeCommonOverallConfigRequest();
~DescribeCommonOverallConfigRequest();
std::string getType() const;
void setType(const std::string &type);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getResourceDirectoryAccountId() const;
void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId);
private:
std::string type_;
std::string sourceIp_;
std::string resourceDirectoryAccountId_;
};
} // namespace Model
} // namespace Sas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECOMMONOVERALLCONFIGREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBECOMMONOVERALLCONFIGRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBECOMMONOVERALLCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeCommonOverallConfigResult : public ServiceResult
{
public:
struct OverallConfig
{
std::string type;
std::string config;
};
DescribeCommonOverallConfigResult();
explicit DescribeCommonOverallConfigResult(const std::string &payload);
~DescribeCommonOverallConfigResult();
OverallConfig getOverallConfig()const;
protected:
void parse(const std::string &payload);
private:
OverallConfig overallConfig_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBECOMMONOVERALLCONFIGRESULT_H_

View File

@@ -45,6 +45,7 @@ namespace AlibabaCloud
int generalAssetCount;
int idcInstanceCount;
int testAssetCount;
int outMachineInstanceCount;
int unprotectedInstanceCount;
int instanceCount;
int offlineInstanceCount;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPICIOUSOVERALLCONFIGREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPICIOUSOVERALLCONFIGREQUEST_H_
#include <alibabacloud/sas/SasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Sas {
namespace Model {
class ALIBABACLOUD_SAS_EXPORT DescribeSuspiciousOverallConfigRequest : public RpcServiceRequest {
public:
DescribeSuspiciousOverallConfigRequest();
~DescribeSuspiciousOverallConfigRequest();
std::string getType() const;
void setType(const std::string &type);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getResourceDirectoryAccountId() const;
void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId);
private:
std::string type_;
std::string sourceIp_;
std::string resourceDirectoryAccountId_;
};
} // namespace Model
} // namespace Sas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPICIOUSOVERALLCONFIGREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPICIOUSOVERALLCONFIGRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPICIOUSOVERALLCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeSuspiciousOverallConfigResult : public ServiceResult
{
public:
struct OverallConfig
{
std::string type;
std::string config;
};
DescribeSuspiciousOverallConfigResult();
explicit DescribeSuspiciousOverallConfigResult(const std::string &payload);
~DescribeSuspiciousOverallConfigResult();
OverallConfig getOverallConfig()const;
protected:
void parse(const std::string &payload);
private:
OverallConfig overallConfig_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBESUSPICIOUSOVERALLCONFIGRESULT_H_

View File

@@ -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_SAS_MODEL_DESCRIBEVENDORLISTREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVENDORLISTREQUEST_H_
#include <alibabacloud/sas/SasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Sas {
namespace Model {
class ALIBABACLOUD_SAS_EXPORT DescribeVendorListRequest : public RpcServiceRequest {
public:
DescribeVendorListRequest();
~DescribeVendorListRequest();
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
private:
std::string sourceIp_;
};
} // namespace Model
} // namespace Sas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVENDORLISTREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_DESCRIBEVENDORLISTRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_DESCRIBEVENDORLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT DescribeVendorListResult : public ServiceResult
{
public:
DescribeVendorListResult();
explicit DescribeVendorListResult(const std::string &payload);
~DescribeVendorListResult();
std::vector<std::string> getVendorNameList()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> vendorNameList_;
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_DESCRIBEVENDORLISTRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_OPERATECOMMONOVERALLCONFIGREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_OPERATECOMMONOVERALLCONFIGREQUEST_H_
#include <alibabacloud/sas/SasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Sas {
namespace Model {
class ALIBABACLOUD_SAS_EXPORT OperateCommonOverallConfigRequest : public RpcServiceRequest {
public:
OperateCommonOverallConfigRequest();
~OperateCommonOverallConfigRequest();
std::string getType() const;
void setType(const std::string &type);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getResourceDirectoryAccountId() const;
void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId);
std::string getConfig() const;
void setConfig(const std::string &config);
private:
std::string type_;
std::string sourceIp_;
std::string resourceDirectoryAccountId_;
std::string config_;
};
} // namespace Model
} // namespace Sas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SAS_MODEL_OPERATECOMMONOVERALLCONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_OPERATECOMMONOVERALLCONFIGRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_OPERATECOMMONOVERALLCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT OperateCommonOverallConfigResult : public ServiceResult
{
public:
OperateCommonOverallConfigResult();
explicit OperateCommonOverallConfigResult(const std::string &payload);
~OperateCommonOverallConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_OPERATECOMMONOVERALLCONFIGRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_OPERATESUSPICIOUSOVERALLCONFIGREQUEST_H_
#define ALIBABACLOUD_SAS_MODEL_OPERATESUSPICIOUSOVERALLCONFIGREQUEST_H_
#include <alibabacloud/sas/SasExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Sas {
namespace Model {
class ALIBABACLOUD_SAS_EXPORT OperateSuspiciousOverallConfigRequest : public RpcServiceRequest {
public:
OperateSuspiciousOverallConfigRequest();
~OperateSuspiciousOverallConfigRequest();
std::string getType() const;
void setType(const std::string &type);
std::string getSourceIp() const;
void setSourceIp(const std::string &sourceIp);
std::string getLang() const;
void setLang(const std::string &lang);
std::string getResourceDirectoryAccountId() const;
void setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId);
bool getNoTargetAsOn() const;
void setNoTargetAsOn(bool noTargetAsOn);
std::string getConfig() const;
void setConfig(const std::string &config);
private:
std::string type_;
std::string sourceIp_;
std::string lang_;
std::string resourceDirectoryAccountId_;
bool noTargetAsOn_;
std::string config_;
};
} // namespace Model
} // namespace Sas
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_SAS_MODEL_OPERATESUSPICIOUSOVERALLCONFIGREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAS_MODEL_OPERATESUSPICIOUSOVERALLCONFIGRESULT_H_
#define ALIBABACLOUD_SAS_MODEL_OPERATESUSPICIOUSOVERALLCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/sas/SasExport.h>
namespace AlibabaCloud
{
namespace Sas
{
namespace Model
{
class ALIBABACLOUD_SAS_EXPORT OperateSuspiciousOverallConfigResult : public ServiceResult
{
public:
OperateSuspiciousOverallConfigResult();
explicit OperateSuspiciousOverallConfigResult(const std::string &payload);
~OperateSuspiciousOverallConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_SAS_MODEL_OPERATESUSPICIOUSOVERALLCONFIGRESULT_H_

View File

@@ -51,6 +51,42 @@ SasClient::SasClient(const std::string & accessKeyId, const std::string & access
SasClient::~SasClient()
{}
SasClient::AddInstallCodeOutcome SasClient::addInstallCode(const AddInstallCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddInstallCodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddInstallCodeOutcome(AddInstallCodeResult(outcome.result()));
else
return AddInstallCodeOutcome(outcome.error());
}
void SasClient::addInstallCodeAsync(const AddInstallCodeRequest& request, const AddInstallCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addInstallCode(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::AddInstallCodeOutcomeCallable SasClient::addInstallCodeCallable(const AddInstallCodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddInstallCodeOutcome()>>(
[this, request]()
{
return this->addInstallCode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::AddVpcHoneyPotOutcome SasClient::addVpcHoneyPot(const AddVpcHoneyPotRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,6 +1671,42 @@ SasClient::DescribeCloudProductFieldStatisticsOutcomeCallable SasClient::describ
return task->get_future();
}
SasClient::DescribeCommonOverallConfigOutcome SasClient::describeCommonOverallConfig(const DescribeCommonOverallConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCommonOverallConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCommonOverallConfigOutcome(DescribeCommonOverallConfigResult(outcome.result()));
else
return DescribeCommonOverallConfigOutcome(outcome.error());
}
void SasClient::describeCommonOverallConfigAsync(const DescribeCommonOverallConfigRequest& request, const DescribeCommonOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCommonOverallConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeCommonOverallConfigOutcomeCallable SasClient::describeCommonOverallConfigCallable(const DescribeCommonOverallConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCommonOverallConfigOutcome()>>(
[this, request]()
{
return this->describeCommonOverallConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeConcernNecessityOutcome SasClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4443,6 +4515,42 @@ SasClient::DescribeSuspEventsOutcomeCallable SasClient::describeSuspEventsCallab
return task->get_future();
}
SasClient::DescribeSuspiciousOverallConfigOutcome SasClient::describeSuspiciousOverallConfig(const DescribeSuspiciousOverallConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSuspiciousOverallConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSuspiciousOverallConfigOutcome(DescribeSuspiciousOverallConfigResult(outcome.result()));
else
return DescribeSuspiciousOverallConfigOutcome(outcome.error());
}
void SasClient::describeSuspiciousOverallConfigAsync(const DescribeSuspiciousOverallConfigRequest& request, const DescribeSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSuspiciousOverallConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeSuspiciousOverallConfigOutcomeCallable SasClient::describeSuspiciousOverallConfigCallable(const DescribeSuspiciousOverallConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSuspiciousOverallConfigOutcome()>>(
[this, request]()
{
return this->describeSuspiciousOverallConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeSuspiciousUUIDConfigOutcome SasClient::describeSuspiciousUUIDConfig(const DescribeSuspiciousUUIDConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4623,6 +4731,42 @@ SasClient::DescribeUuidsByVulNamesOutcomeCallable SasClient::describeUuidsByVulN
return task->get_future();
}
SasClient::DescribeVendorListOutcome SasClient::describeVendorList(const DescribeVendorListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVendorListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVendorListOutcome(DescribeVendorListResult(outcome.result()));
else
return DescribeVendorListOutcome(outcome.error());
}
void SasClient::describeVendorListAsync(const DescribeVendorListRequest& request, const DescribeVendorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVendorList(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::DescribeVendorListOutcomeCallable SasClient::describeVendorListCallable(const DescribeVendorListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVendorListOutcome()>>(
[this, request]()
{
return this->describeVendorList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::DescribeVersionConfigOutcome SasClient::describeVersionConfig(const DescribeVersionConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -6747,6 +6891,78 @@ SasClient::OperateAgentClientInstallOutcomeCallable SasClient::operateAgentClien
return task->get_future();
}
SasClient::OperateCommonOverallConfigOutcome SasClient::operateCommonOverallConfig(const OperateCommonOverallConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OperateCommonOverallConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OperateCommonOverallConfigOutcome(OperateCommonOverallConfigResult(outcome.result()));
else
return OperateCommonOverallConfigOutcome(outcome.error());
}
void SasClient::operateCommonOverallConfigAsync(const OperateCommonOverallConfigRequest& request, const OperateCommonOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, operateCommonOverallConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::OperateCommonOverallConfigOutcomeCallable SasClient::operateCommonOverallConfigCallable(const OperateCommonOverallConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OperateCommonOverallConfigOutcome()>>(
[this, request]()
{
return this->operateCommonOverallConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::OperateSuspiciousOverallConfigOutcome SasClient::operateSuspiciousOverallConfig(const OperateSuspiciousOverallConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OperateSuspiciousOverallConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OperateSuspiciousOverallConfigOutcome(OperateSuspiciousOverallConfigResult(outcome.result()));
else
return OperateSuspiciousOverallConfigOutcome(outcome.error());
}
void SasClient::operateSuspiciousOverallConfigAsync(const OperateSuspiciousOverallConfigRequest& request, const OperateSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, operateSuspiciousOverallConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
SasClient::OperateSuspiciousOverallConfigOutcomeCallable SasClient::operateSuspiciousOverallConfigCallable(const OperateSuspiciousOverallConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OperateSuspiciousOverallConfigOutcome()>>(
[this, request]()
{
return this->operateSuspiciousOverallConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
SasClient::OperateSuspiciousTargetConfigOutcome SasClient::operateSuspiciousTargetConfig(const OperateSuspiciousTargetConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/AddInstallCodeRequest.h>
using AlibabaCloud::Sas::Model::AddInstallCodeRequest;
AddInstallCodeRequest::AddInstallCodeRequest()
: RpcServiceRequest("sas", "2018-12-03", "AddInstallCode") {
setMethod(HttpRequest::Method::Post);
}
AddInstallCodeRequest::~AddInstallCodeRequest() {}
long AddInstallCodeRequest::getExpiredDate() const {
return expiredDate_;
}
void AddInstallCodeRequest::setExpiredDate(long expiredDate) {
expiredDate_ = expiredDate;
setParameter(std::string("ExpiredDate"), std::to_string(expiredDate));
}
std::string AddInstallCodeRequest::getSourceIp() const {
return sourceIp_;
}
void AddInstallCodeRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string AddInstallCodeRequest::getOs() const {
return os_;
}
void AddInstallCodeRequest::setOs(const std::string &os) {
os_ = os;
setParameter(std::string("Os"), os);
}
long AddInstallCodeRequest::getGroupId() const {
return groupId_;
}
void AddInstallCodeRequest::setGroupId(long groupId) {
groupId_ = groupId;
setParameter(std::string("GroupId"), std::to_string(groupId));
}
bool AddInstallCodeRequest::getOnlyImage() const {
return onlyImage_;
}
void AddInstallCodeRequest::setOnlyImage(bool onlyImage) {
onlyImage_ = onlyImage;
setParameter(std::string("OnlyImage"), onlyImage ? "true" : "false");
}
std::string AddInstallCodeRequest::getVendorName() const {
return vendorName_;
}
void AddInstallCodeRequest::setVendorName(const std::string &vendorName) {
vendorName_ = vendorName;
setParameter(std::string("VendorName"), vendorName);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/AddInstallCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
AddInstallCodeResult::AddInstallCodeResult() :
ServiceResult()
{}
AddInstallCodeResult::AddInstallCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddInstallCodeResult::~AddInstallCodeResult()
{}
void AddInstallCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeCommonOverallConfigRequest.h>
using AlibabaCloud::Sas::Model::DescribeCommonOverallConfigRequest;
DescribeCommonOverallConfigRequest::DescribeCommonOverallConfigRequest()
: RpcServiceRequest("sas", "2018-12-03", "DescribeCommonOverallConfig") {
setMethod(HttpRequest::Method::Post);
}
DescribeCommonOverallConfigRequest::~DescribeCommonOverallConfigRequest() {}
std::string DescribeCommonOverallConfigRequest::getType() const {
return type_;
}
void DescribeCommonOverallConfigRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string DescribeCommonOverallConfigRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeCommonOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeCommonOverallConfigRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeCommonOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeCommonOverallConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeCommonOverallConfigResult::DescribeCommonOverallConfigResult() :
ServiceResult()
{}
DescribeCommonOverallConfigResult::DescribeCommonOverallConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCommonOverallConfigResult::~DescribeCommonOverallConfigResult()
{}
void DescribeCommonOverallConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto overallConfigNode = value["OverallConfig"];
if(!overallConfigNode["Type"].isNull())
overallConfig_.type = overallConfigNode["Type"].asString();
if(!overallConfigNode["Config"].isNull())
overallConfig_.config = overallConfigNode["Config"].asString();
}
DescribeCommonOverallConfigResult::OverallConfig DescribeCommonOverallConfigResult::getOverallConfig()const
{
return overallConfig_;
}

View File

@@ -80,6 +80,8 @@ void DescribeFieldStatisticsResult::parse(const std::string &payload)
groupedFields_.huaweiInstanceCount = std::stoi(groupedFieldsNode["HuaweiInstanceCount"].asString());
if(!groupedFieldsNode["AwsInstanceCount"].isNull())
groupedFields_.awsInstanceCount = std::stoi(groupedFieldsNode["AwsInstanceCount"].asString());
if(!groupedFieldsNode["OutMachineInstanceCount"].isNull())
groupedFields_.outMachineInstanceCount = std::stoi(groupedFieldsNode["OutMachineInstanceCount"].asString());
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeSuspiciousOverallConfigRequest.h>
using AlibabaCloud::Sas::Model::DescribeSuspiciousOverallConfigRequest;
DescribeSuspiciousOverallConfigRequest::DescribeSuspiciousOverallConfigRequest()
: RpcServiceRequest("sas", "2018-12-03", "DescribeSuspiciousOverallConfig") {
setMethod(HttpRequest::Method::Post);
}
DescribeSuspiciousOverallConfigRequest::~DescribeSuspiciousOverallConfigRequest() {}
std::string DescribeSuspiciousOverallConfigRequest::getType() const {
return type_;
}
void DescribeSuspiciousOverallConfigRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string DescribeSuspiciousOverallConfigRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeSuspiciousOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string DescribeSuspiciousOverallConfigRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void DescribeSuspiciousOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeSuspiciousOverallConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeSuspiciousOverallConfigResult::DescribeSuspiciousOverallConfigResult() :
ServiceResult()
{}
DescribeSuspiciousOverallConfigResult::DescribeSuspiciousOverallConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSuspiciousOverallConfigResult::~DescribeSuspiciousOverallConfigResult()
{}
void DescribeSuspiciousOverallConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto overallConfigNode = value["OverallConfig"];
if(!overallConfigNode["Type"].isNull())
overallConfig_.type = overallConfigNode["Type"].asString();
if(!overallConfigNode["Config"].isNull())
overallConfig_.config = overallConfigNode["Config"].asString();
}
DescribeSuspiciousOverallConfigResult::OverallConfig DescribeSuspiciousOverallConfigResult::getOverallConfig()const
{
return overallConfig_;
}

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeVendorListRequest.h>
using AlibabaCloud::Sas::Model::DescribeVendorListRequest;
DescribeVendorListRequest::DescribeVendorListRequest()
: RpcServiceRequest("sas", "2018-12-03", "DescribeVendorList") {
setMethod(HttpRequest::Method::Post);
}
DescribeVendorListRequest::~DescribeVendorListRequest() {}
std::string DescribeVendorListRequest::getSourceIp() const {
return sourceIp_;
}
void DescribeVendorListRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeVendorListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeVendorListResult::DescribeVendorListResult() :
ServiceResult()
{}
DescribeVendorListResult::DescribeVendorListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVendorListResult::~DescribeVendorListResult()
{}
void DescribeVendorListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVendorNameList = value["VendorNameList"]["VendorName"];
for (const auto &item : allVendorNameList)
vendorNameList_.push_back(item.asString());
}
std::vector<std::string> DescribeVendorListResult::getVendorNameList()const
{
return vendorNameList_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/OperateCommonOverallConfigRequest.h>
using AlibabaCloud::Sas::Model::OperateCommonOverallConfigRequest;
OperateCommonOverallConfigRequest::OperateCommonOverallConfigRequest()
: RpcServiceRequest("sas", "2018-12-03", "OperateCommonOverallConfig") {
setMethod(HttpRequest::Method::Post);
}
OperateCommonOverallConfigRequest::~OperateCommonOverallConfigRequest() {}
std::string OperateCommonOverallConfigRequest::getType() const {
return type_;
}
void OperateCommonOverallConfigRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string OperateCommonOverallConfigRequest::getSourceIp() const {
return sourceIp_;
}
void OperateCommonOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string OperateCommonOverallConfigRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void OperateCommonOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
}
std::string OperateCommonOverallConfigRequest::getConfig() const {
return config_;
}
void OperateCommonOverallConfigRequest::setConfig(const std::string &config) {
config_ = config;
setParameter(std::string("Config"), config);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/OperateCommonOverallConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
OperateCommonOverallConfigResult::OperateCommonOverallConfigResult() :
ServiceResult()
{}
OperateCommonOverallConfigResult::OperateCommonOverallConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OperateCommonOverallConfigResult::~OperateCommonOverallConfigResult()
{}
void OperateCommonOverallConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/OperateSuspiciousOverallConfigRequest.h>
using AlibabaCloud::Sas::Model::OperateSuspiciousOverallConfigRequest;
OperateSuspiciousOverallConfigRequest::OperateSuspiciousOverallConfigRequest()
: RpcServiceRequest("sas", "2018-12-03", "OperateSuspiciousOverallConfig") {
setMethod(HttpRequest::Method::Post);
}
OperateSuspiciousOverallConfigRequest::~OperateSuspiciousOverallConfigRequest() {}
std::string OperateSuspiciousOverallConfigRequest::getType() const {
return type_;
}
void OperateSuspiciousOverallConfigRequest::setType(const std::string &type) {
type_ = type;
setParameter(std::string("Type"), type);
}
std::string OperateSuspiciousOverallConfigRequest::getSourceIp() const {
return sourceIp_;
}
void OperateSuspiciousOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
sourceIp_ = sourceIp;
setParameter(std::string("SourceIp"), sourceIp);
}
std::string OperateSuspiciousOverallConfigRequest::getLang() const {
return lang_;
}
void OperateSuspiciousOverallConfigRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}
std::string OperateSuspiciousOverallConfigRequest::getResourceDirectoryAccountId() const {
return resourceDirectoryAccountId_;
}
void OperateSuspiciousOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
}
bool OperateSuspiciousOverallConfigRequest::getNoTargetAsOn() const {
return noTargetAsOn_;
}
void OperateSuspiciousOverallConfigRequest::setNoTargetAsOn(bool noTargetAsOn) {
noTargetAsOn_ = noTargetAsOn;
setParameter(std::string("NoTargetAsOn"), noTargetAsOn ? "true" : "false");
}
std::string OperateSuspiciousOverallConfigRequest::getConfig() const {
return config_;
}
void OperateSuspiciousOverallConfigRequest::setConfig(const std::string &config) {
config_ = config;
setParameter(std::string("Config"), config);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/OperateSuspiciousOverallConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
OperateSuspiciousOverallConfigResult::OperateSuspiciousOverallConfigResult() :
ServiceResult()
{}
OperateSuspiciousOverallConfigResult::OperateSuspiciousOverallConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OperateSuspiciousOverallConfigResult::~OperateSuspiciousOverallConfigResult()
{}
void OperateSuspiciousOverallConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}