regenerate code
This commit is contained in:
@@ -1239,6 +1239,42 @@ DdsClient::DescribeKernelReleaseNotesOutcomeCallable DdsClient::describeKernelRe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DdsClient::DescribeMongoDBLogConfigOutcome DdsClient::describeMongoDBLogConfig(const DescribeMongoDBLogConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMongoDBLogConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMongoDBLogConfigOutcome(DescribeMongoDBLogConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeMongoDBLogConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DdsClient::describeMongoDBLogConfigAsync(const DescribeMongoDBLogConfigRequest& request, const DescribeMongoDBLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMongoDBLogConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DdsClient::DescribeMongoDBLogConfigOutcomeCallable DdsClient::describeMongoDBLogConfigCallable(const DescribeMongoDBLogConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMongoDBLogConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMongoDBLogConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DdsClient::DescribeParameterModificationHistoryOutcome DdsClient::describeParameterModificationHistory(const DescribeParameterModificationHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -59,6 +59,8 @@ void DescribeAuditRecordsResult::parse(const std::string &payload)
|
||||
itemsObject.executeTime = valueItemsSQLRecord["ExecuteTime"].asString();
|
||||
if(!valueItemsSQLRecord["ThreadID"].isNull())
|
||||
itemsObject.threadID = valueItemsSQLRecord["ThreadID"].asString();
|
||||
if(!valueItemsSQLRecord["TableName"].isNull())
|
||||
itemsObject.tableName = valueItemsSQLRecord["TableName"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
|
||||
106
dds/src/model/DescribeMongoDBLogConfigRequest.cc
Normal file
106
dds/src/model/DescribeMongoDBLogConfigRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dds/model/DescribeMongoDBLogConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Dds::Model::DescribeMongoDBLogConfigRequest;
|
||||
|
||||
DescribeMongoDBLogConfigRequest::DescribeMongoDBLogConfigRequest() :
|
||||
RpcServiceRequest("dds", "2015-12-01", "DescribeMongoDBLogConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMongoDBLogConfigRequest::~DescribeMongoDBLogConfigRequest()
|
||||
{}
|
||||
|
||||
long DescribeMongoDBLogConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeMongoDBLogConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeMongoDBLogConfigRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeMongoDBLogConfigRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeMongoDBLogConfigRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeMongoDBLogConfigRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeMongoDBLogConfigRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeMongoDBLogConfigRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
dds/src/model/DescribeMongoDBLogConfigResult.cc
Normal file
65
dds/src/model/DescribeMongoDBLogConfigResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/dds/model/DescribeMongoDBLogConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dds;
|
||||
using namespace AlibabaCloud::Dds::Model;
|
||||
|
||||
DescribeMongoDBLogConfigResult::DescribeMongoDBLogConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMongoDBLogConfigResult::DescribeMongoDBLogConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMongoDBLogConfigResult::~DescribeMongoDBLogConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeMongoDBLogConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UserProjectName"].isNull())
|
||||
userProjectName_ = value["UserProjectName"].asString();
|
||||
if(!value["IsUserProjectLogstoreExist"].isNull())
|
||||
isUserProjectLogstoreExist_ = std::stoi(value["IsUserProjectLogstoreExist"].asString());
|
||||
if(!value["IsEtlMetaExist"].isNull())
|
||||
isEtlMetaExist_ = std::stoi(value["IsEtlMetaExist"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMongoDBLogConfigResult::getUserProjectName()const
|
||||
{
|
||||
return userProjectName_;
|
||||
}
|
||||
|
||||
int DescribeMongoDBLogConfigResult::getIsUserProjectLogstoreExist()const
|
||||
{
|
||||
return isUserProjectLogstoreExist_;
|
||||
}
|
||||
|
||||
int DescribeMongoDBLogConfigResult::getIsEtlMetaExist()const
|
||||
{
|
||||
return isEtlMetaExist_;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,8 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
DdsRegion regionsObject;
|
||||
if(!valueRegionsDdsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsDdsRegion["RegionId"].asString();
|
||||
if(!valueRegionsDdsRegion["ZoneIds"].isNull())
|
||||
regionsObject.zoneIds = valueRegionsDdsRegion["ZoneIds"].asString();
|
||||
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
|
||||
for (auto allRegionsNodeZonesZone : allZonesNode)
|
||||
{
|
||||
|
||||
@@ -65,9 +65,34 @@ void DescribeShardingNetworkAddressResult::parse(const std::string &payload)
|
||||
networkAddressesObject.role = valueNetworkAddressesNetworkAddress["Role"].asString();
|
||||
networkAddresses_.push_back(networkAddressesObject);
|
||||
}
|
||||
auto allCompatibleConnectionsNode = value["CompatibleConnections"]["CompatibleConnection"];
|
||||
for (auto valueCompatibleConnectionsCompatibleConnection : allCompatibleConnectionsNode)
|
||||
{
|
||||
CompatibleConnection compatibleConnectionsObject;
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["NetworkAddress"].isNull())
|
||||
compatibleConnectionsObject.networkAddress = valueCompatibleConnectionsCompatibleConnection["NetworkAddress"].asString();
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["IPAddress"].isNull())
|
||||
compatibleConnectionsObject.iPAddress = valueCompatibleConnectionsCompatibleConnection["IPAddress"].asString();
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["NetworkType"].isNull())
|
||||
compatibleConnectionsObject.networkType = valueCompatibleConnectionsCompatibleConnection["NetworkType"].asString();
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["Port"].isNull())
|
||||
compatibleConnectionsObject.port = valueCompatibleConnectionsCompatibleConnection["Port"].asString();
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["VPCId"].isNull())
|
||||
compatibleConnectionsObject.vPCId = valueCompatibleConnectionsCompatibleConnection["VPCId"].asString();
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["VswitchId"].isNull())
|
||||
compatibleConnectionsObject.vswitchId = valueCompatibleConnectionsCompatibleConnection["VswitchId"].asString();
|
||||
if(!valueCompatibleConnectionsCompatibleConnection["ExpiredTime"].isNull())
|
||||
compatibleConnectionsObject.expiredTime = valueCompatibleConnectionsCompatibleConnection["ExpiredTime"].asString();
|
||||
compatibleConnections_.push_back(compatibleConnectionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeShardingNetworkAddressResult::CompatibleConnection> DescribeShardingNetworkAddressResult::getCompatibleConnections()const
|
||||
{
|
||||
return compatibleConnections_;
|
||||
}
|
||||
|
||||
std::vector<DescribeShardingNetworkAddressResult::NetworkAddress> DescribeShardingNetworkAddressResult::getNetworkAddresses()const
|
||||
{
|
||||
return networkAddresses_;
|
||||
|
||||
Reference in New Issue
Block a user