Add DescribeAuditLogConfig API.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-07-27 Version: 1.36.829
|
||||
- Add DescribeAuditLogConfig API.
|
||||
|
||||
2021-07-27 Version: 1.36.828
|
||||
- Createdynamictaggroup increases the filter parameters for TagRegionId.
|
||||
|
||||
|
||||
@@ -55,6 +55,8 @@ set(r-kvstore_public_header_model
|
||||
include/alibabacloud/r-kvstore/model/DescribeAccountsResult.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskRequest.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeActiveOperationTaskResult.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeAuditLogConfigRequest.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeAuditLogConfigResult.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeAuditRecordsRequest.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeAuditRecordsResult.h
|
||||
include/alibabacloud/r-kvstore/model/DescribeAvailableResourceRequest.h
|
||||
@@ -252,6 +254,8 @@ set(r-kvstore_src
|
||||
src/model/DescribeAccountsResult.cc
|
||||
src/model/DescribeActiveOperationTaskRequest.cc
|
||||
src/model/DescribeActiveOperationTaskResult.cc
|
||||
src/model/DescribeAuditLogConfigRequest.cc
|
||||
src/model/DescribeAuditLogConfigResult.cc
|
||||
src/model/DescribeAuditRecordsRequest.cc
|
||||
src/model/DescribeAuditRecordsResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
|
||||
@@ -56,6 +56,8 @@
|
||||
#include "model/DescribeAccountsResult.h"
|
||||
#include "model/DescribeActiveOperationTaskRequest.h"
|
||||
#include "model/DescribeActiveOperationTaskResult.h"
|
||||
#include "model/DescribeAuditLogConfigRequest.h"
|
||||
#include "model/DescribeAuditLogConfigResult.h"
|
||||
#include "model/DescribeAuditRecordsRequest.h"
|
||||
#include "model/DescribeAuditRecordsResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
@@ -276,6 +278,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeActiveOperationTaskResult> DescribeActiveOperationTaskOutcome;
|
||||
typedef std::future<DescribeActiveOperationTaskOutcome> DescribeActiveOperationTaskOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeActiveOperationTaskRequest&, const DescribeActiveOperationTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeActiveOperationTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditLogConfigResult> DescribeAuditLogConfigOutcome;
|
||||
typedef std::future<DescribeAuditLogConfigOutcome> DescribeAuditLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeAuditLogConfigRequest&, const DescribeAuditLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditRecordsResult> DescribeAuditRecordsOutcome;
|
||||
typedef std::future<DescribeAuditRecordsOutcome> DescribeAuditRecordsOutcomeCallable;
|
||||
typedef std::function<void(const R_kvstoreClient*, const Model::DescribeAuditRecordsRequest&, const DescribeAuditRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditRecordsAsyncHandler;
|
||||
@@ -572,6 +577,9 @@ namespace AlibabaCloud
|
||||
DescribeActiveOperationTaskOutcome describeActiveOperationTask(const Model::DescribeActiveOperationTaskRequest &request)const;
|
||||
void describeActiveOperationTaskAsync(const Model::DescribeActiveOperationTaskRequest& request, const DescribeActiveOperationTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeActiveOperationTaskOutcomeCallable describeActiveOperationTaskCallable(const Model::DescribeActiveOperationTaskRequest& request) const;
|
||||
DescribeAuditLogConfigOutcome describeAuditLogConfig(const Model::DescribeAuditLogConfigRequest &request)const;
|
||||
void describeAuditLogConfigAsync(const Model::DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditLogConfigOutcomeCallable describeAuditLogConfigCallable(const Model::DescribeAuditLogConfigRequest& request) const;
|
||||
DescribeAuditRecordsOutcome describeAuditRecords(const Model::DescribeAuditRecordsRequest &request)const;
|
||||
void describeAuditRecordsAsync(const Model::DescribeAuditRecordsRequest& request, const DescribeAuditRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditRecordsOutcomeCallable describeAuditRecordsCallable(const Model::DescribeAuditRecordsRequest& request) const;
|
||||
|
||||
@@ -43,11 +43,11 @@ namespace AlibabaCloud
|
||||
std::string getInstanceId()const;
|
||||
std::string getConfig()const;
|
||||
int getPort()const;
|
||||
std::string getInstanceName()const;
|
||||
std::string getConnectionDomain()const;
|
||||
std::string getInstanceName()const;
|
||||
long getQPS()const;
|
||||
std::string getInstanceStatus()const;
|
||||
std::string getChargeType()const;
|
||||
std::string getInstanceStatus()const;
|
||||
long getBandwidth()const;
|
||||
std::string getRegionId()const;
|
||||
|
||||
@@ -60,11 +60,11 @@ namespace AlibabaCloud
|
||||
std::string instanceId_;
|
||||
std::string config_;
|
||||
int port_;
|
||||
std::string instanceName_;
|
||||
std::string connectionDomain_;
|
||||
std::string instanceName_;
|
||||
long qPS_;
|
||||
std::string instanceStatus_;
|
||||
std::string chargeType_;
|
||||
std::string instanceStatus_;
|
||||
long bandwidth_;
|
||||
std::string regionId_;
|
||||
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_R_KVSTORE_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeAuditLogConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAuditLogConfigRequest();
|
||||
~DescribeAuditLogConfigRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_R_KVSTORE_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/r-kvstore/R_kvstoreExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace R_kvstore
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_R_KVSTORE_EXPORT DescribeAuditLogConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeAuditLogConfigResult();
|
||||
explicit DescribeAuditLogConfigResult(const std::string &payload);
|
||||
~DescribeAuditLogConfigResult();
|
||||
std::string getDbAudit()const;
|
||||
std::string getRetention()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dbAudit_;
|
||||
std::string retention_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_R_KVSTORE_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_
|
||||
@@ -663,6 +663,42 @@ R_kvstoreClient::DescribeActiveOperationTaskOutcomeCallable R_kvstoreClient::des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeAuditLogConfigOutcome R_kvstoreClient::describeAuditLogConfig(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditLogConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditLogConfigOutcome(DescribeAuditLogConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditLogConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void R_kvstoreClient::describeAuditLogConfigAsync(const DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditLogConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeAuditLogConfigOutcomeCallable R_kvstoreClient::describeAuditLogConfigCallable(const DescribeAuditLogConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditLogConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditLogConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
R_kvstoreClient::DescribeAuditRecordsOutcome R_kvstoreClient::describeAuditRecords(const DescribeAuditRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -39,32 +39,32 @@ void CreateTairInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Bandwidth"].isNull())
|
||||
bandwidth_ = std::stol(value["Bandwidth"].asString());
|
||||
if(!value["ChargeType"].isNull())
|
||||
chargeType_ = value["ChargeType"].asString();
|
||||
if(!value["Config"].isNull())
|
||||
config_ = value["Config"].asString();
|
||||
if(!value["ConnectionDomain"].isNull())
|
||||
connectionDomain_ = value["ConnectionDomain"].asString();
|
||||
if(!value["Connections"].isNull())
|
||||
connections_ = std::stol(value["Connections"].asString());
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["InstanceName"].isNull())
|
||||
instanceName_ = value["InstanceName"].asString();
|
||||
if(!value["ConnectionDomain"].isNull())
|
||||
connectionDomain_ = value["ConnectionDomain"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = std::stoi(value["Port"].asString());
|
||||
if(!value["InstanceStatus"].isNull())
|
||||
instanceStatus_ = value["InstanceStatus"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
port_ = std::stoi(value["Port"].asString());
|
||||
if(!value["QPS"].isNull())
|
||||
qPS_ = std::stol(value["QPS"].asString());
|
||||
if(!value["Bandwidth"].isNull())
|
||||
bandwidth_ = std::stol(value["Bandwidth"].asString());
|
||||
if(!value["Connections"].isNull())
|
||||
connections_ = std::stol(value["Connections"].asString());
|
||||
if(!value["ZoneId"].isNull())
|
||||
zoneId_ = value["ZoneId"].asString();
|
||||
if(!value["Config"].isNull())
|
||||
config_ = value["Config"].asString();
|
||||
if(!value["ChargeType"].isNull())
|
||||
chargeType_ = value["ChargeType"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
zoneId_ = value["ZoneId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -98,31 +98,31 @@ int CreateTairInstanceResult::getPort()const
|
||||
return port_;
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceResult::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceResult::getConnectionDomain()const
|
||||
{
|
||||
return connectionDomain_;
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceResult::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
}
|
||||
|
||||
long CreateTairInstanceResult::getQPS()const
|
||||
{
|
||||
return qPS_;
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceResult::getInstanceStatus()const
|
||||
{
|
||||
return instanceStatus_;
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceResult::getChargeType()const
|
||||
{
|
||||
return chargeType_;
|
||||
}
|
||||
|
||||
std::string CreateTairInstanceResult::getInstanceStatus()const
|
||||
{
|
||||
return instanceStatus_;
|
||||
}
|
||||
|
||||
long CreateTairInstanceResult::getBandwidth()const
|
||||
{
|
||||
return bandwidth_;
|
||||
|
||||
117
r-kvstore/src/model/DescribeAuditLogConfigRequest.cc
Normal file
117
r-kvstore/src/model/DescribeAuditLogConfigRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/r-kvstore/model/DescribeAuditLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::R_kvstore::Model::DescribeAuditLogConfigRequest;
|
||||
|
||||
DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() :
|
||||
RpcServiceRequest("r-kvstore", "2015-01-01", "DescribeAuditLogConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAuditLogConfigRequest::~DescribeAuditLogConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeAuditLogConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeAuditLogConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeAuditLogConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
58
r-kvstore/src/model/DescribeAuditLogConfigResult.cc
Normal file
58
r-kvstore/src/model/DescribeAuditLogConfigResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/r-kvstore/model/DescribeAuditLogConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::R_kvstore;
|
||||
using namespace AlibabaCloud::R_kvstore::Model;
|
||||
|
||||
DescribeAuditLogConfigResult::DescribeAuditLogConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditLogConfigResult::DescribeAuditLogConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditLogConfigResult::~DescribeAuditLogConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditLogConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DbAudit"].isNull())
|
||||
dbAudit_ = value["DbAudit"].asString();
|
||||
if(!value["Retention"].isNull())
|
||||
retention_ = value["Retention"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigResult::getDbAudit()const
|
||||
{
|
||||
return dbAudit_;
|
||||
}
|
||||
|
||||
std::string DescribeAuditLogConfigResult::getRetention()const
|
||||
{
|
||||
return retention_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user