regenerate code
This commit is contained in:
@@ -87,6 +87,8 @@ set(dds_public_header_model
|
||||
include/alibabacloud/dds/model/DescribeInstanceAutoRenewalAttributeResult.h
|
||||
include/alibabacloud/dds/model/DescribeKernelReleaseNotesRequest.h
|
||||
include/alibabacloud/dds/model/DescribeKernelReleaseNotesResult.h
|
||||
include/alibabacloud/dds/model/DescribeMongoDBLogConfigRequest.h
|
||||
include/alibabacloud/dds/model/DescribeMongoDBLogConfigResult.h
|
||||
include/alibabacloud/dds/model/DescribeParameterModificationHistoryRequest.h
|
||||
include/alibabacloud/dds/model/DescribeParameterModificationHistoryResult.h
|
||||
include/alibabacloud/dds/model/DescribeParameterTemplatesRequest.h
|
||||
@@ -254,6 +256,8 @@ set(dds_src
|
||||
src/model/DescribeInstanceAutoRenewalAttributeResult.cc
|
||||
src/model/DescribeKernelReleaseNotesRequest.cc
|
||||
src/model/DescribeKernelReleaseNotesResult.cc
|
||||
src/model/DescribeMongoDBLogConfigRequest.cc
|
||||
src/model/DescribeMongoDBLogConfigResult.cc
|
||||
src/model/DescribeParameterModificationHistoryRequest.cc
|
||||
src/model/DescribeParameterModificationHistoryResult.cc
|
||||
src/model/DescribeParameterTemplatesRequest.cc
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
#include "model/DescribeInstanceAutoRenewalAttributeResult.h"
|
||||
#include "model/DescribeKernelReleaseNotesRequest.h"
|
||||
#include "model/DescribeKernelReleaseNotesResult.h"
|
||||
#include "model/DescribeMongoDBLogConfigRequest.h"
|
||||
#include "model/DescribeMongoDBLogConfigResult.h"
|
||||
#include "model/DescribeParameterModificationHistoryRequest.h"
|
||||
#include "model/DescribeParameterModificationHistoryResult.h"
|
||||
#include "model/DescribeParameterTemplatesRequest.h"
|
||||
@@ -294,6 +296,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeKernelReleaseNotesResult> DescribeKernelReleaseNotesOutcome;
|
||||
typedef std::future<DescribeKernelReleaseNotesOutcome> DescribeKernelReleaseNotesOutcomeCallable;
|
||||
typedef std::function<void(const DdsClient*, const Model::DescribeKernelReleaseNotesRequest&, const DescribeKernelReleaseNotesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeKernelReleaseNotesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMongoDBLogConfigResult> DescribeMongoDBLogConfigOutcome;
|
||||
typedef std::future<DescribeMongoDBLogConfigOutcome> DescribeMongoDBLogConfigOutcomeCallable;
|
||||
typedef std::function<void(const DdsClient*, const Model::DescribeMongoDBLogConfigRequest&, const DescribeMongoDBLogConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMongoDBLogConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeParameterModificationHistoryResult> DescribeParameterModificationHistoryOutcome;
|
||||
typedef std::future<DescribeParameterModificationHistoryOutcome> DescribeParameterModificationHistoryOutcomeCallable;
|
||||
typedef std::function<void(const DdsClient*, const Model::DescribeParameterModificationHistoryRequest&, const DescribeParameterModificationHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeParameterModificationHistoryAsyncHandler;
|
||||
@@ -545,6 +550,9 @@ namespace AlibabaCloud
|
||||
DescribeKernelReleaseNotesOutcome describeKernelReleaseNotes(const Model::DescribeKernelReleaseNotesRequest &request)const;
|
||||
void describeKernelReleaseNotesAsync(const Model::DescribeKernelReleaseNotesRequest& request, const DescribeKernelReleaseNotesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeKernelReleaseNotesOutcomeCallable describeKernelReleaseNotesCallable(const Model::DescribeKernelReleaseNotesRequest& request) const;
|
||||
DescribeMongoDBLogConfigOutcome describeMongoDBLogConfig(const Model::DescribeMongoDBLogConfigRequest &request)const;
|
||||
void describeMongoDBLogConfigAsync(const Model::DescribeMongoDBLogConfigRequest& request, const DescribeMongoDBLogConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMongoDBLogConfigOutcomeCallable describeMongoDBLogConfigCallable(const Model::DescribeMongoDBLogConfigRequest& request) const;
|
||||
DescribeParameterModificationHistoryOutcome describeParameterModificationHistory(const Model::DescribeParameterModificationHistoryRequest &request)const;
|
||||
void describeParameterModificationHistoryAsync(const Model::DescribeParameterModificationHistoryRequest& request, const DescribeParameterModificationHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeParameterModificationHistoryOutcomeCallable describeParameterModificationHistoryCallable(const Model::DescribeParameterModificationHistoryRequest& request) const;
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct SQLRecord
|
||||
{
|
||||
std::string tableName;
|
||||
std::string executeTime;
|
||||
std::string threadID;
|
||||
long returnRowCounts;
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEMONGODBLOGCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEMONGODBLOGCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dds/DdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DDS_EXPORT DescribeMongoDBLogConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeMongoDBLogConfigRequest();
|
||||
~DescribeMongoDBLogConfigRequest();
|
||||
|
||||
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 getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
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);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEMONGODBLOGCONFIGREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DDS_MODEL_DESCRIBEMONGODBLOGCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_DDS_MODEL_DESCRIBEMONGODBLOGCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dds/DdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DDS_EXPORT DescribeMongoDBLogConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeMongoDBLogConfigResult();
|
||||
explicit DescribeMongoDBLogConfigResult(const std::string &payload);
|
||||
~DescribeMongoDBLogConfigResult();
|
||||
std::string getUserProjectName()const;
|
||||
int getIsUserProjectLogstoreExist()const;
|
||||
int getIsEtlMetaExist()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string userProjectName_;
|
||||
int isUserProjectLogstoreExist_;
|
||||
int isEtlMetaExist_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DDS_MODEL_DESCRIBEMONGODBLOGCONFIGRESULT_H_
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string zoneId;
|
||||
};
|
||||
std::string regionId;
|
||||
std::string zoneIds;
|
||||
std::vector<DdsRegion::Zone> zones;
|
||||
};
|
||||
|
||||
|
||||
@@ -45,16 +45,28 @@ namespace AlibabaCloud
|
||||
std::string iPAddress;
|
||||
std::string vswitchId;
|
||||
};
|
||||
struct CompatibleConnection
|
||||
{
|
||||
std::string networkAddress;
|
||||
std::string vPCId;
|
||||
std::string networkType;
|
||||
std::string port;
|
||||
std::string expiredTime;
|
||||
std::string iPAddress;
|
||||
std::string vswitchId;
|
||||
};
|
||||
|
||||
|
||||
DescribeShardingNetworkAddressResult();
|
||||
explicit DescribeShardingNetworkAddressResult(const std::string &payload);
|
||||
~DescribeShardingNetworkAddressResult();
|
||||
std::vector<CompatibleConnection> getCompatibleConnections()const;
|
||||
std::vector<NetworkAddress> getNetworkAddresses()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<CompatibleConnection> compatibleConnections_;
|
||||
std::vector<NetworkAddress> networkAddresses_;
|
||||
|
||||
};
|
||||
|
||||
@@ -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