This commit is contained in:
wb-hx510875
2019-09-19 11:14:07 +08:00
parent 2f6036b803
commit ba463ae2dc
1795 changed files with 41555 additions and 38367 deletions

View File

@@ -54,60 +54,60 @@ void CreateNetworkAclResult::parse(const std::string &payload)
networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString();
if(!networkAclAttributeNode["Status"].isNull())
networkAclAttribute_.status = networkAclAttributeNode["Status"].asString();
auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"];
for (auto value : allIngressAclEntries)
auto allIngressAclEntriesNode = networkAclAttributeNode["IngressAclEntries"]["IngressAclEntry"];
for (auto networkAclAttributeNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode)
{
NetworkAclAttribute::IngressAclEntry ingressAclEntryObject;
if(!value["NetworkAclEntryId"].isNull())
ingressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
if(!value["Policy"].isNull())
ingressAclEntryObject.policy = value["Policy"].asString();
if(!value["Protocol"].isNull())
ingressAclEntryObject.protocol = value["Protocol"].asString();
if(!value["SourceCidrIp"].isNull())
ingressAclEntryObject.sourceCidrIp = value["SourceCidrIp"].asString();
if(!value["Port"].isNull())
ingressAclEntryObject.port = value["Port"].asString();
if(!value["EntryType"].isNull())
ingressAclEntryObject.entryType = value["EntryType"].asString();
if(!value["NetworkAclEntryName"].isNull())
ingressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
if(!value["Description"].isNull())
ingressAclEntryObject.description = value["Description"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull())
ingressAclEntryObject.networkAclEntryId = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].isNull())
ingressAclEntryObject.policy = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull())
ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull())
ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull())
ingressAclEntryObject.port = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].isNull())
ingressAclEntryObject.entryType = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull())
ingressAclEntryObject.networkAclEntryName = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].isNull())
ingressAclEntryObject.description = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].asString();
networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject);
}
auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"];
for (auto value : allEgressAclEntries)
auto allEgressAclEntriesNode = networkAclAttributeNode["EgressAclEntries"]["EgressAclEntry"];
for (auto networkAclAttributeNodeEgressAclEntriesEgressAclEntry : allEgressAclEntriesNode)
{
NetworkAclAttribute::EgressAclEntry egressAclEntryObject;
if(!value["NetworkAclEntryId"].isNull())
egressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
if(!value["Policy"].isNull())
egressAclEntryObject.policy = value["Policy"].asString();
if(!value["Protocol"].isNull())
egressAclEntryObject.protocol = value["Protocol"].asString();
if(!value["DestinationCidrIp"].isNull())
egressAclEntryObject.destinationCidrIp = value["DestinationCidrIp"].asString();
if(!value["Port"].isNull())
egressAclEntryObject.port = value["Port"].asString();
if(!value["EntryType"].isNull())
egressAclEntryObject.entryType = value["EntryType"].asString();
if(!value["Description"].isNull())
egressAclEntryObject.description = value["Description"].asString();
if(!value["NetworkAclEntryName"].isNull())
egressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull())
egressAclEntryObject.networkAclEntryId = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].isNull())
egressAclEntryObject.policy = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].isNull())
egressAclEntryObject.protocol = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull())
egressAclEntryObject.destinationCidrIp = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].isNull())
egressAclEntryObject.port = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull())
egressAclEntryObject.entryType = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].isNull())
egressAclEntryObject.description = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull())
egressAclEntryObject.networkAclEntryName = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString();
networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject);
}
auto allResources = value["Resources"]["Resource"];
for (auto value : allResources)
auto allResourcesNode = networkAclAttributeNode["Resources"]["Resource"];
for (auto networkAclAttributeNodeResourcesResource : allResourcesNode)
{
NetworkAclAttribute::Resource resourceObject;
if(!value["ResourceId"].isNull())
resourceObject.resourceId = value["ResourceId"].asString();
if(!value["ResourceType"].isNull())
resourceObject.resourceType = value["ResourceType"].asString();
if(!value["Status"].isNull())
resourceObject.status = value["Status"].asString();
if(!networkAclAttributeNodeResourcesResource["ResourceId"].isNull())
resourceObject.resourceId = networkAclAttributeNodeResourcesResource["ResourceId"].asString();
if(!networkAclAttributeNodeResourcesResource["ResourceType"].isNull())
resourceObject.resourceType = networkAclAttributeNodeResourcesResource["ResourceType"].asString();
if(!networkAclAttributeNodeResourcesResource["Status"].isNull())
resourceObject.status = networkAclAttributeNodeResourcesResource["Status"].asString();
networkAclAttribute_.resources.push_back(resourceObject);
}
if(!value["NetworkAclId"].isNull())

View File

@@ -39,26 +39,26 @@ void DescribeAccessPointsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAccessPointSet = value["AccessPointSet"]["AccessPointType"];
for (auto value : allAccessPointSet)
auto allAccessPointSetNode = value["AccessPointSet"]["AccessPointType"];
for (auto valueAccessPointSetAccessPointType : allAccessPointSetNode)
{
AccessPointType accessPointSetObject;
if(!value["AccessPointId"].isNull())
accessPointSetObject.accessPointId = value["AccessPointId"].asString();
if(!value["Status"].isNull())
accessPointSetObject.status = value["Status"].asString();
if(!value["Type"].isNull())
accessPointSetObject.type = value["Type"].asString();
if(!value["AttachedRegionNo"].isNull())
accessPointSetObject.attachedRegionNo = value["AttachedRegionNo"].asString();
if(!value["Location"].isNull())
accessPointSetObject.location = value["Location"].asString();
if(!value["HostOperator"].isNull())
accessPointSetObject.hostOperator = value["HostOperator"].asString();
if(!value["Name"].isNull())
accessPointSetObject.name = value["Name"].asString();
if(!value["Description"].isNull())
accessPointSetObject.description = value["Description"].asString();
if(!valueAccessPointSetAccessPointType["AccessPointId"].isNull())
accessPointSetObject.accessPointId = valueAccessPointSetAccessPointType["AccessPointId"].asString();
if(!valueAccessPointSetAccessPointType["Status"].isNull())
accessPointSetObject.status = valueAccessPointSetAccessPointType["Status"].asString();
if(!valueAccessPointSetAccessPointType["Type"].isNull())
accessPointSetObject.type = valueAccessPointSetAccessPointType["Type"].asString();
if(!valueAccessPointSetAccessPointType["AttachedRegionNo"].isNull())
accessPointSetObject.attachedRegionNo = valueAccessPointSetAccessPointType["AttachedRegionNo"].asString();
if(!valueAccessPointSetAccessPointType["Location"].isNull())
accessPointSetObject.location = valueAccessPointSetAccessPointType["Location"].asString();
if(!valueAccessPointSetAccessPointType["HostOperator"].isNull())
accessPointSetObject.hostOperator = valueAccessPointSetAccessPointType["HostOperator"].asString();
if(!valueAccessPointSetAccessPointType["Name"].isNull())
accessPointSetObject.name = valueAccessPointSetAccessPointType["Name"].asString();
if(!valueAccessPointSetAccessPointType["Description"].isNull())
accessPointSetObject.description = valueAccessPointSetAccessPointType["Description"].asString();
accessPointSet_.push_back(accessPointSetObject);
}
if(!value["PageNumber"].isNull())

View File

@@ -39,50 +39,50 @@ void DescribeBandwidthPackagesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBandwidthPackages = value["BandwidthPackages"]["BandwidthPackage"];
for (auto value : allBandwidthPackages)
auto allBandwidthPackagesNode = value["BandwidthPackages"]["BandwidthPackage"];
for (auto valueBandwidthPackagesBandwidthPackage : allBandwidthPackagesNode)
{
BandwidthPackage bandwidthPackagesObject;
if(!value["BandwidthPackageId"].isNull())
bandwidthPackagesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
if(!value["RegionId"].isNull())
bandwidthPackagesObject.regionId = value["RegionId"].asString();
if(!value["Name"].isNull())
bandwidthPackagesObject.name = value["Name"].asString();
if(!value["Description"].isNull())
bandwidthPackagesObject.description = value["Description"].asString();
if(!value["ZoneId"].isNull())
bandwidthPackagesObject.zoneId = value["ZoneId"].asString();
if(!value["NatGatewayId"].isNull())
bandwidthPackagesObject.natGatewayId = value["NatGatewayId"].asString();
if(!value["Bandwidth"].isNull())
bandwidthPackagesObject.bandwidth = value["Bandwidth"].asString();
if(!value["InstanceChargeType"].isNull())
bandwidthPackagesObject.instanceChargeType = value["InstanceChargeType"].asString();
if(!value["InternetChargeType"].isNull())
bandwidthPackagesObject.internetChargeType = value["InternetChargeType"].asString();
if(!value["BusinessStatus"].isNull())
bandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
if(!value["IpCount"].isNull())
bandwidthPackagesObject.ipCount = value["IpCount"].asString();
if(!value["CreationTime"].isNull())
bandwidthPackagesObject.creationTime = value["CreationTime"].asString();
if(!value["Status"].isNull())
bandwidthPackagesObject.status = value["Status"].asString();
if(!value["ISP"].isNull())
bandwidthPackagesObject.iSP = value["ISP"].asString();
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"];
for (auto value : allPublicIpAddresses)
if(!valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].isNull())
bandwidthPackagesObject.bandwidthPackageId = valueBandwidthPackagesBandwidthPackage["BandwidthPackageId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["RegionId"].isNull())
bandwidthPackagesObject.regionId = valueBandwidthPackagesBandwidthPackage["RegionId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Name"].isNull())
bandwidthPackagesObject.name = valueBandwidthPackagesBandwidthPackage["Name"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Description"].isNull())
bandwidthPackagesObject.description = valueBandwidthPackagesBandwidthPackage["Description"].asString();
if(!valueBandwidthPackagesBandwidthPackage["ZoneId"].isNull())
bandwidthPackagesObject.zoneId = valueBandwidthPackagesBandwidthPackage["ZoneId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["NatGatewayId"].isNull())
bandwidthPackagesObject.natGatewayId = valueBandwidthPackagesBandwidthPackage["NatGatewayId"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Bandwidth"].isNull())
bandwidthPackagesObject.bandwidth = valueBandwidthPackagesBandwidthPackage["Bandwidth"].asString();
if(!valueBandwidthPackagesBandwidthPackage["InstanceChargeType"].isNull())
bandwidthPackagesObject.instanceChargeType = valueBandwidthPackagesBandwidthPackage["InstanceChargeType"].asString();
if(!valueBandwidthPackagesBandwidthPackage["InternetChargeType"].isNull())
bandwidthPackagesObject.internetChargeType = valueBandwidthPackagesBandwidthPackage["InternetChargeType"].asString();
if(!valueBandwidthPackagesBandwidthPackage["BusinessStatus"].isNull())
bandwidthPackagesObject.businessStatus = valueBandwidthPackagesBandwidthPackage["BusinessStatus"].asString();
if(!valueBandwidthPackagesBandwidthPackage["IpCount"].isNull())
bandwidthPackagesObject.ipCount = valueBandwidthPackagesBandwidthPackage["IpCount"].asString();
if(!valueBandwidthPackagesBandwidthPackage["CreationTime"].isNull())
bandwidthPackagesObject.creationTime = valueBandwidthPackagesBandwidthPackage["CreationTime"].asString();
if(!valueBandwidthPackagesBandwidthPackage["Status"].isNull())
bandwidthPackagesObject.status = valueBandwidthPackagesBandwidthPackage["Status"].asString();
if(!valueBandwidthPackagesBandwidthPackage["ISP"].isNull())
bandwidthPackagesObject.iSP = valueBandwidthPackagesBandwidthPackage["ISP"].asString();
auto allPublicIpAddressesNode = allBandwidthPackagesNode["PublicIpAddresses"]["PublicIpAddresse"];
for (auto allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode)
{
BandwidthPackage::PublicIpAddresse publicIpAddressesObject;
if(!value["AllocationId"].isNull())
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
if(!value["IpAddress"].isNull())
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
if(!value["UsingStatus"].isNull())
publicIpAddressesObject.usingStatus = value["UsingStatus"].asString();
if(!value["ApAccessEnabled"].isNull())
publicIpAddressesObject.apAccessEnabled = value["ApAccessEnabled"].asString() == "true";
if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].isNull())
publicIpAddressesObject.allocationId = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].asString();
if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].isNull())
publicIpAddressesObject.ipAddress = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].asString();
if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["UsingStatus"].isNull())
publicIpAddressesObject.usingStatus = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["UsingStatus"].asString();
if(!allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["ApAccessEnabled"].isNull())
publicIpAddressesObject.apAccessEnabled = allBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["ApAccessEnabled"].asString() == "true";
bandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject);
}
bandwidthPackages_.push_back(bandwidthPackagesObject);

View File

@@ -39,36 +39,36 @@ void DescribeBgpGroupsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBgpGroups = value["BgpGroups"]["BgpGroup"];
for (auto value : allBgpGroups)
auto allBgpGroupsNode = value["BgpGroups"]["BgpGroup"];
for (auto valueBgpGroupsBgpGroup : allBgpGroupsNode)
{
BgpGroup bgpGroupsObject;
if(!value["Name"].isNull())
bgpGroupsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
bgpGroupsObject.description = value["Description"].asString();
if(!value["BgpGroupId"].isNull())
bgpGroupsObject.bgpGroupId = value["BgpGroupId"].asString();
if(!value["PeerAsn"].isNull())
bgpGroupsObject.peerAsn = value["PeerAsn"].asString();
if(!value["AuthKey"].isNull())
bgpGroupsObject.authKey = value["AuthKey"].asString();
if(!value["RouterId"].isNull())
bgpGroupsObject.routerId = value["RouterId"].asString();
if(!value["Status"].isNull())
bgpGroupsObject.status = value["Status"].asString();
if(!value["Keepalive"].isNull())
bgpGroupsObject.keepalive = value["Keepalive"].asString();
if(!value["LocalAsn"].isNull())
bgpGroupsObject.localAsn = value["LocalAsn"].asString();
if(!value["Hold"].isNull())
bgpGroupsObject.hold = value["Hold"].asString();
if(!value["IsFake"].isNull())
bgpGroupsObject.isFake = value["IsFake"].asString();
if(!value["RouteLimit"].isNull())
bgpGroupsObject.routeLimit = value["RouteLimit"].asString();
if(!value["RegionId"].isNull())
bgpGroupsObject.regionId = value["RegionId"].asString();
if(!valueBgpGroupsBgpGroup["Name"].isNull())
bgpGroupsObject.name = valueBgpGroupsBgpGroup["Name"].asString();
if(!valueBgpGroupsBgpGroup["Description"].isNull())
bgpGroupsObject.description = valueBgpGroupsBgpGroup["Description"].asString();
if(!valueBgpGroupsBgpGroup["BgpGroupId"].isNull())
bgpGroupsObject.bgpGroupId = valueBgpGroupsBgpGroup["BgpGroupId"].asString();
if(!valueBgpGroupsBgpGroup["PeerAsn"].isNull())
bgpGroupsObject.peerAsn = valueBgpGroupsBgpGroup["PeerAsn"].asString();
if(!valueBgpGroupsBgpGroup["AuthKey"].isNull())
bgpGroupsObject.authKey = valueBgpGroupsBgpGroup["AuthKey"].asString();
if(!valueBgpGroupsBgpGroup["RouterId"].isNull())
bgpGroupsObject.routerId = valueBgpGroupsBgpGroup["RouterId"].asString();
if(!valueBgpGroupsBgpGroup["Status"].isNull())
bgpGroupsObject.status = valueBgpGroupsBgpGroup["Status"].asString();
if(!valueBgpGroupsBgpGroup["Keepalive"].isNull())
bgpGroupsObject.keepalive = valueBgpGroupsBgpGroup["Keepalive"].asString();
if(!valueBgpGroupsBgpGroup["LocalAsn"].isNull())
bgpGroupsObject.localAsn = valueBgpGroupsBgpGroup["LocalAsn"].asString();
if(!valueBgpGroupsBgpGroup["Hold"].isNull())
bgpGroupsObject.hold = valueBgpGroupsBgpGroup["Hold"].asString();
if(!valueBgpGroupsBgpGroup["IsFake"].isNull())
bgpGroupsObject.isFake = valueBgpGroupsBgpGroup["IsFake"].asString();
if(!valueBgpGroupsBgpGroup["RouteLimit"].isNull())
bgpGroupsObject.routeLimit = valueBgpGroupsBgpGroup["RouteLimit"].asString();
if(!valueBgpGroupsBgpGroup["RegionId"].isNull())
bgpGroupsObject.regionId = valueBgpGroupsBgpGroup["RegionId"].asString();
bgpGroups_.push_back(bgpGroupsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,16 +39,16 @@ void DescribeBgpNetworksResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBgpNetworks = value["BgpNetworks"]["BgpNetwork"];
for (auto value : allBgpNetworks)
auto allBgpNetworksNode = value["BgpNetworks"]["BgpNetwork"];
for (auto valueBgpNetworksBgpNetwork : allBgpNetworksNode)
{
BgpNetwork bgpNetworksObject;
if(!value["VpcId"].isNull())
bgpNetworksObject.vpcId = value["VpcId"].asString();
if(!value["DstCidrBlock"].isNull())
bgpNetworksObject.dstCidrBlock = value["DstCidrBlock"].asString();
if(!value["RouterId"].isNull())
bgpNetworksObject.routerId = value["RouterId"].asString();
if(!valueBgpNetworksBgpNetwork["VpcId"].isNull())
bgpNetworksObject.vpcId = valueBgpNetworksBgpNetwork["VpcId"].asString();
if(!valueBgpNetworksBgpNetwork["DstCidrBlock"].isNull())
bgpNetworksObject.dstCidrBlock = valueBgpNetworksBgpNetwork["DstCidrBlock"].asString();
if(!valueBgpNetworksBgpNetwork["RouterId"].isNull())
bgpNetworksObject.routerId = valueBgpNetworksBgpNetwork["RouterId"].asString();
bgpNetworks_.push_back(bgpNetworksObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,44 +39,44 @@ void DescribeBgpPeersResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBgpPeers = value["BgpPeers"]["BgpPeer"];
for (auto value : allBgpPeers)
auto allBgpPeersNode = value["BgpPeers"]["BgpPeer"];
for (auto valueBgpPeersBgpPeer : allBgpPeersNode)
{
BgpPeer bgpPeersObject;
if(!value["Name"].isNull())
bgpPeersObject.name = value["Name"].asString();
if(!value["Description"].isNull())
bgpPeersObject.description = value["Description"].asString();
if(!value["BgpPeerId"].isNull())
bgpPeersObject.bgpPeerId = value["BgpPeerId"].asString();
if(!value["BgpGroupId"].isNull())
bgpPeersObject.bgpGroupId = value["BgpGroupId"].asString();
if(!value["PeerIpAddress"].isNull())
bgpPeersObject.peerIpAddress = value["PeerIpAddress"].asString();
if(!value["PeerAsn"].isNull())
bgpPeersObject.peerAsn = value["PeerAsn"].asString();
if(!value["AuthKey"].isNull())
bgpPeersObject.authKey = value["AuthKey"].asString();
if(!value["RouterId"].isNull())
bgpPeersObject.routerId = value["RouterId"].asString();
if(!value["BgpStatus"].isNull())
bgpPeersObject.bgpStatus = value["BgpStatus"].asString();
if(!value["Status"].isNull())
bgpPeersObject.status = value["Status"].asString();
if(!value["Keepalive"].isNull())
bgpPeersObject.keepalive = value["Keepalive"].asString();
if(!value["LocalAsn"].isNull())
bgpPeersObject.localAsn = value["LocalAsn"].asString();
if(!value["Hold"].isNull())
bgpPeersObject.hold = value["Hold"].asString();
if(!value["IsFake"].isNull())
bgpPeersObject.isFake = value["IsFake"].asString();
if(!value["RouteLimit"].isNull())
bgpPeersObject.routeLimit = value["RouteLimit"].asString();
if(!value["RegionId"].isNull())
bgpPeersObject.regionId = value["RegionId"].asString();
if(!value["EnableBfd"].isNull())
bgpPeersObject.enableBfd = value["EnableBfd"].asString() == "true";
if(!valueBgpPeersBgpPeer["Name"].isNull())
bgpPeersObject.name = valueBgpPeersBgpPeer["Name"].asString();
if(!valueBgpPeersBgpPeer["Description"].isNull())
bgpPeersObject.description = valueBgpPeersBgpPeer["Description"].asString();
if(!valueBgpPeersBgpPeer["BgpPeerId"].isNull())
bgpPeersObject.bgpPeerId = valueBgpPeersBgpPeer["BgpPeerId"].asString();
if(!valueBgpPeersBgpPeer["BgpGroupId"].isNull())
bgpPeersObject.bgpGroupId = valueBgpPeersBgpPeer["BgpGroupId"].asString();
if(!valueBgpPeersBgpPeer["PeerIpAddress"].isNull())
bgpPeersObject.peerIpAddress = valueBgpPeersBgpPeer["PeerIpAddress"].asString();
if(!valueBgpPeersBgpPeer["PeerAsn"].isNull())
bgpPeersObject.peerAsn = valueBgpPeersBgpPeer["PeerAsn"].asString();
if(!valueBgpPeersBgpPeer["AuthKey"].isNull())
bgpPeersObject.authKey = valueBgpPeersBgpPeer["AuthKey"].asString();
if(!valueBgpPeersBgpPeer["RouterId"].isNull())
bgpPeersObject.routerId = valueBgpPeersBgpPeer["RouterId"].asString();
if(!valueBgpPeersBgpPeer["BgpStatus"].isNull())
bgpPeersObject.bgpStatus = valueBgpPeersBgpPeer["BgpStatus"].asString();
if(!valueBgpPeersBgpPeer["Status"].isNull())
bgpPeersObject.status = valueBgpPeersBgpPeer["Status"].asString();
if(!valueBgpPeersBgpPeer["Keepalive"].isNull())
bgpPeersObject.keepalive = valueBgpPeersBgpPeer["Keepalive"].asString();
if(!valueBgpPeersBgpPeer["LocalAsn"].isNull())
bgpPeersObject.localAsn = valueBgpPeersBgpPeer["LocalAsn"].asString();
if(!valueBgpPeersBgpPeer["Hold"].isNull())
bgpPeersObject.hold = valueBgpPeersBgpPeer["Hold"].asString();
if(!valueBgpPeersBgpPeer["IsFake"].isNull())
bgpPeersObject.isFake = valueBgpPeersBgpPeer["IsFake"].asString();
if(!valueBgpPeersBgpPeer["RouteLimit"].isNull())
bgpPeersObject.routeLimit = valueBgpPeersBgpPeer["RouteLimit"].asString();
if(!valueBgpPeersBgpPeer["RegionId"].isNull())
bgpPeersObject.regionId = valueBgpPeersBgpPeer["RegionId"].asString();
if(!valueBgpPeersBgpPeer["EnableBfd"].isNull())
bgpPeersObject.enableBfd = valueBgpPeersBgpPeer["EnableBfd"].asString() == "true";
bgpPeers_.push_back(bgpPeersObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,58 +39,58 @@ void DescribeCommonBandwidthPackagesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCommonBandwidthPackages = value["CommonBandwidthPackages"]["CommonBandwidthPackage"];
for (auto value : allCommonBandwidthPackages)
auto allCommonBandwidthPackagesNode = value["CommonBandwidthPackages"]["CommonBandwidthPackage"];
for (auto valueCommonBandwidthPackagesCommonBandwidthPackage : allCommonBandwidthPackagesNode)
{
CommonBandwidthPackage commonBandwidthPackagesObject;
if(!value["BandwidthPackageId"].isNull())
commonBandwidthPackagesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
if(!value["RegionId"].isNull())
commonBandwidthPackagesObject.regionId = value["RegionId"].asString();
if(!value["Name"].isNull())
commonBandwidthPackagesObject.name = value["Name"].asString();
if(!value["Description"].isNull())
commonBandwidthPackagesObject.description = value["Description"].asString();
if(!value["Bandwidth"].isNull())
commonBandwidthPackagesObject.bandwidth = value["Bandwidth"].asString();
if(!value["InstanceChargeType"].isNull())
commonBandwidthPackagesObject.instanceChargeType = value["InstanceChargeType"].asString();
if(!value["InternetChargeType"].isNull())
commonBandwidthPackagesObject.internetChargeType = value["InternetChargeType"].asString();
if(!value["BusinessStatus"].isNull())
commonBandwidthPackagesObject.businessStatus = value["BusinessStatus"].asString();
if(!value["CreationTime"].isNull())
commonBandwidthPackagesObject.creationTime = value["CreationTime"].asString();
if(!value["ExpiredTime"].isNull())
commonBandwidthPackagesObject.expiredTime = value["ExpiredTime"].asString();
if(!value["Status"].isNull())
commonBandwidthPackagesObject.status = value["Status"].asString();
if(!value["Ratio"].isNull())
commonBandwidthPackagesObject.ratio = std::stoi(value["Ratio"].asString());
if(!value["ResourceGroupId"].isNull())
commonBandwidthPackagesObject.resourceGroupId = value["ResourceGroupId"].asString();
if(!value["HasReservationData"].isNull())
commonBandwidthPackagesObject.hasReservationData = value["HasReservationData"].asString();
if(!value["ReservationBandwidth"].isNull())
commonBandwidthPackagesObject.reservationBandwidth = value["ReservationBandwidth"].asString();
if(!value["ReservationInternetChargeType"].isNull())
commonBandwidthPackagesObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
if(!value["ReservationActiveTime"].isNull())
commonBandwidthPackagesObject.reservationActiveTime = value["ReservationActiveTime"].asString();
if(!value["ReservationOrderType"].isNull())
commonBandwidthPackagesObject.reservationOrderType = value["ReservationOrderType"].asString();
if(!value["ISP"].isNull())
commonBandwidthPackagesObject.iSP = value["ISP"].asString();
if(!value["DeletionProtection"].isNull())
commonBandwidthPackagesObject.deletionProtection = value["DeletionProtection"].asString() == "true";
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddresse"];
for (auto value : allPublicIpAddresses)
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["BandwidthPackageId"].isNull())
commonBandwidthPackagesObject.bandwidthPackageId = valueCommonBandwidthPackagesCommonBandwidthPackage["BandwidthPackageId"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["RegionId"].isNull())
commonBandwidthPackagesObject.regionId = valueCommonBandwidthPackagesCommonBandwidthPackage["RegionId"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Name"].isNull())
commonBandwidthPackagesObject.name = valueCommonBandwidthPackagesCommonBandwidthPackage["Name"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Description"].isNull())
commonBandwidthPackagesObject.description = valueCommonBandwidthPackagesCommonBandwidthPackage["Description"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Bandwidth"].isNull())
commonBandwidthPackagesObject.bandwidth = valueCommonBandwidthPackagesCommonBandwidthPackage["Bandwidth"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["InstanceChargeType"].isNull())
commonBandwidthPackagesObject.instanceChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["InstanceChargeType"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["InternetChargeType"].isNull())
commonBandwidthPackagesObject.internetChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["InternetChargeType"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["BusinessStatus"].isNull())
commonBandwidthPackagesObject.businessStatus = valueCommonBandwidthPackagesCommonBandwidthPackage["BusinessStatus"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["CreationTime"].isNull())
commonBandwidthPackagesObject.creationTime = valueCommonBandwidthPackagesCommonBandwidthPackage["CreationTime"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ExpiredTime"].isNull())
commonBandwidthPackagesObject.expiredTime = valueCommonBandwidthPackagesCommonBandwidthPackage["ExpiredTime"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Status"].isNull())
commonBandwidthPackagesObject.status = valueCommonBandwidthPackagesCommonBandwidthPackage["Status"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["Ratio"].isNull())
commonBandwidthPackagesObject.ratio = std::stoi(valueCommonBandwidthPackagesCommonBandwidthPackage["Ratio"].asString());
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ResourceGroupId"].isNull())
commonBandwidthPackagesObject.resourceGroupId = valueCommonBandwidthPackagesCommonBandwidthPackage["ResourceGroupId"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].isNull())
commonBandwidthPackagesObject.hasReservationData = valueCommonBandwidthPackagesCommonBandwidthPackage["HasReservationData"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationBandwidth"].isNull())
commonBandwidthPackagesObject.reservationBandwidth = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationBandwidth"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationInternetChargeType"].isNull())
commonBandwidthPackagesObject.reservationInternetChargeType = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationInternetChargeType"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationActiveTime"].isNull())
commonBandwidthPackagesObject.reservationActiveTime = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationActiveTime"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationOrderType"].isNull())
commonBandwidthPackagesObject.reservationOrderType = valueCommonBandwidthPackagesCommonBandwidthPackage["ReservationOrderType"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["ISP"].isNull())
commonBandwidthPackagesObject.iSP = valueCommonBandwidthPackagesCommonBandwidthPackage["ISP"].asString();
if(!valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].isNull())
commonBandwidthPackagesObject.deletionProtection = valueCommonBandwidthPackagesCommonBandwidthPackage["DeletionProtection"].asString() == "true";
auto allPublicIpAddressesNode = allCommonBandwidthPackagesNode["PublicIpAddresses"]["PublicIpAddresse"];
for (auto allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse : allPublicIpAddressesNode)
{
CommonBandwidthPackage::PublicIpAddresse publicIpAddressesObject;
if(!value["AllocationId"].isNull())
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
if(!value["IpAddress"].isNull())
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
if(!allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].isNull())
publicIpAddressesObject.allocationId = allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["AllocationId"].asString();
if(!allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].isNull())
publicIpAddressesObject.ipAddress = allCommonBandwidthPackagesNodePublicIpAddressesPublicIpAddresse["IpAddress"].asString();
commonBandwidthPackagesObject.publicIpAddresses.push_back(publicIpAddressesObject);
}
commonBandwidthPackages_.push_back(commonBandwidthPackagesObject);

View File

@@ -39,20 +39,20 @@ void DescribeCustomerGatewaysResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomerGateways = value["CustomerGateways"]["CustomerGateway"];
for (auto value : allCustomerGateways)
auto allCustomerGatewaysNode = value["CustomerGateways"]["CustomerGateway"];
for (auto valueCustomerGatewaysCustomerGateway : allCustomerGatewaysNode)
{
CustomerGateway customerGatewaysObject;
if(!value["CustomerGatewayId"].isNull())
customerGatewaysObject.customerGatewayId = value["CustomerGatewayId"].asString();
if(!value["Name"].isNull())
customerGatewaysObject.name = value["Name"].asString();
if(!value["IpAddress"].isNull())
customerGatewaysObject.ipAddress = value["IpAddress"].asString();
if(!value["Description"].isNull())
customerGatewaysObject.description = value["Description"].asString();
if(!value["CreateTime"].isNull())
customerGatewaysObject.createTime = std::stol(value["CreateTime"].asString());
if(!valueCustomerGatewaysCustomerGateway["CustomerGatewayId"].isNull())
customerGatewaysObject.customerGatewayId = valueCustomerGatewaysCustomerGateway["CustomerGatewayId"].asString();
if(!valueCustomerGatewaysCustomerGateway["Name"].isNull())
customerGatewaysObject.name = valueCustomerGatewaysCustomerGateway["Name"].asString();
if(!valueCustomerGatewaysCustomerGateway["IpAddress"].isNull())
customerGatewaysObject.ipAddress = valueCustomerGatewaysCustomerGateway["IpAddress"].asString();
if(!valueCustomerGatewaysCustomerGateway["Description"].isNull())
customerGatewaysObject.description = valueCustomerGatewaysCustomerGateway["Description"].asString();
if(!valueCustomerGatewaysCustomerGateway["CreateTime"].isNull())
customerGatewaysObject.createTime = std::stol(valueCustomerGatewaysCustomerGateway["CreateTime"].asString());
customerGateways_.push_back(customerGatewaysObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,86 +39,86 @@ void DescribeEipAddressesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEipAddresses = value["EipAddresses"]["EipAddress"];
for (auto value : allEipAddresses)
auto allEipAddressesNode = value["EipAddresses"]["EipAddress"];
for (auto valueEipAddressesEipAddress : allEipAddressesNode)
{
EipAddress eipAddressesObject;
if(!value["RegionId"].isNull())
eipAddressesObject.regionId = value["RegionId"].asString();
if(!value["IpAddress"].isNull())
eipAddressesObject.ipAddress = value["IpAddress"].asString();
if(!value["PrivateIpAddress"].isNull())
eipAddressesObject.privateIpAddress = value["PrivateIpAddress"].asString();
if(!value["AllocationId"].isNull())
eipAddressesObject.allocationId = value["AllocationId"].asString();
if(!value["Status"].isNull())
eipAddressesObject.status = value["Status"].asString();
if(!value["InstanceId"].isNull())
eipAddressesObject.instanceId = value["InstanceId"].asString();
if(!value["Bandwidth"].isNull())
eipAddressesObject.bandwidth = value["Bandwidth"].asString();
if(!value["EipBandwidth"].isNull())
eipAddressesObject.eipBandwidth = value["EipBandwidth"].asString();
if(!value["InternetChargeType"].isNull())
eipAddressesObject.internetChargeType = value["InternetChargeType"].asString();
if(!value["AllocationTime"].isNull())
eipAddressesObject.allocationTime = value["AllocationTime"].asString();
if(!value["InstanceType"].isNull())
eipAddressesObject.instanceType = value["InstanceType"].asString();
if(!value["InstanceRegionId"].isNull())
eipAddressesObject.instanceRegionId = value["InstanceRegionId"].asString();
if(!value["ChargeType"].isNull())
eipAddressesObject.chargeType = value["ChargeType"].asString();
if(!value["ExpiredTime"].isNull())
eipAddressesObject.expiredTime = value["ExpiredTime"].asString();
if(!value["HDMonitorStatus"].isNull())
eipAddressesObject.hDMonitorStatus = value["HDMonitorStatus"].asString();
if(!value["Name"].isNull())
eipAddressesObject.name = value["Name"].asString();
if(!value["ISP"].isNull())
eipAddressesObject.iSP = value["ISP"].asString();
if(!value["Descritpion"].isNull())
eipAddressesObject.descritpion = value["Descritpion"].asString();
if(!value["BandwidthPackageId"].isNull())
eipAddressesObject.bandwidthPackageId = value["BandwidthPackageId"].asString();
if(!value["BandwidthPackageType"].isNull())
eipAddressesObject.bandwidthPackageType = value["BandwidthPackageType"].asString();
if(!value["BandwidthPackageBandwidth"].isNull())
eipAddressesObject.bandwidthPackageBandwidth = value["BandwidthPackageBandwidth"].asString();
if(!value["ResourceGroupId"].isNull())
eipAddressesObject.resourceGroupId = value["ResourceGroupId"].asString();
if(!value["HasReservationData"].isNull())
eipAddressesObject.hasReservationData = value["HasReservationData"].asString();
if(!value["ReservationBandwidth"].isNull())
eipAddressesObject.reservationBandwidth = value["ReservationBandwidth"].asString();
if(!value["ReservationInternetChargeType"].isNull())
eipAddressesObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
if(!value["ReservationActiveTime"].isNull())
eipAddressesObject.reservationActiveTime = value["ReservationActiveTime"].asString();
if(!value["ReservationOrderType"].isNull())
eipAddressesObject.reservationOrderType = value["ReservationOrderType"].asString();
if(!value["Mode"].isNull())
eipAddressesObject.mode = value["Mode"].asString();
if(!value["DeletionProtection"].isNull())
eipAddressesObject.deletionProtection = value["DeletionProtection"].asString() == "true";
if(!value["SecondLimited"].isNull())
eipAddressesObject.secondLimited = value["SecondLimited"].asString() == "true";
auto allOperationLocks = value["OperationLocks"]["LockReason"];
for (auto value : allOperationLocks)
if(!valueEipAddressesEipAddress["RegionId"].isNull())
eipAddressesObject.regionId = valueEipAddressesEipAddress["RegionId"].asString();
if(!valueEipAddressesEipAddress["IpAddress"].isNull())
eipAddressesObject.ipAddress = valueEipAddressesEipAddress["IpAddress"].asString();
if(!valueEipAddressesEipAddress["PrivateIpAddress"].isNull())
eipAddressesObject.privateIpAddress = valueEipAddressesEipAddress["PrivateIpAddress"].asString();
if(!valueEipAddressesEipAddress["AllocationId"].isNull())
eipAddressesObject.allocationId = valueEipAddressesEipAddress["AllocationId"].asString();
if(!valueEipAddressesEipAddress["Status"].isNull())
eipAddressesObject.status = valueEipAddressesEipAddress["Status"].asString();
if(!valueEipAddressesEipAddress["InstanceId"].isNull())
eipAddressesObject.instanceId = valueEipAddressesEipAddress["InstanceId"].asString();
if(!valueEipAddressesEipAddress["Bandwidth"].isNull())
eipAddressesObject.bandwidth = valueEipAddressesEipAddress["Bandwidth"].asString();
if(!valueEipAddressesEipAddress["EipBandwidth"].isNull())
eipAddressesObject.eipBandwidth = valueEipAddressesEipAddress["EipBandwidth"].asString();
if(!valueEipAddressesEipAddress["InternetChargeType"].isNull())
eipAddressesObject.internetChargeType = valueEipAddressesEipAddress["InternetChargeType"].asString();
if(!valueEipAddressesEipAddress["AllocationTime"].isNull())
eipAddressesObject.allocationTime = valueEipAddressesEipAddress["AllocationTime"].asString();
if(!valueEipAddressesEipAddress["InstanceType"].isNull())
eipAddressesObject.instanceType = valueEipAddressesEipAddress["InstanceType"].asString();
if(!valueEipAddressesEipAddress["InstanceRegionId"].isNull())
eipAddressesObject.instanceRegionId = valueEipAddressesEipAddress["InstanceRegionId"].asString();
if(!valueEipAddressesEipAddress["ChargeType"].isNull())
eipAddressesObject.chargeType = valueEipAddressesEipAddress["ChargeType"].asString();
if(!valueEipAddressesEipAddress["ExpiredTime"].isNull())
eipAddressesObject.expiredTime = valueEipAddressesEipAddress["ExpiredTime"].asString();
if(!valueEipAddressesEipAddress["HDMonitorStatus"].isNull())
eipAddressesObject.hDMonitorStatus = valueEipAddressesEipAddress["HDMonitorStatus"].asString();
if(!valueEipAddressesEipAddress["Name"].isNull())
eipAddressesObject.name = valueEipAddressesEipAddress["Name"].asString();
if(!valueEipAddressesEipAddress["ISP"].isNull())
eipAddressesObject.iSP = valueEipAddressesEipAddress["ISP"].asString();
if(!valueEipAddressesEipAddress["Descritpion"].isNull())
eipAddressesObject.descritpion = valueEipAddressesEipAddress["Descritpion"].asString();
if(!valueEipAddressesEipAddress["BandwidthPackageId"].isNull())
eipAddressesObject.bandwidthPackageId = valueEipAddressesEipAddress["BandwidthPackageId"].asString();
if(!valueEipAddressesEipAddress["BandwidthPackageType"].isNull())
eipAddressesObject.bandwidthPackageType = valueEipAddressesEipAddress["BandwidthPackageType"].asString();
if(!valueEipAddressesEipAddress["BandwidthPackageBandwidth"].isNull())
eipAddressesObject.bandwidthPackageBandwidth = valueEipAddressesEipAddress["BandwidthPackageBandwidth"].asString();
if(!valueEipAddressesEipAddress["ResourceGroupId"].isNull())
eipAddressesObject.resourceGroupId = valueEipAddressesEipAddress["ResourceGroupId"].asString();
if(!valueEipAddressesEipAddress["HasReservationData"].isNull())
eipAddressesObject.hasReservationData = valueEipAddressesEipAddress["HasReservationData"].asString();
if(!valueEipAddressesEipAddress["ReservationBandwidth"].isNull())
eipAddressesObject.reservationBandwidth = valueEipAddressesEipAddress["ReservationBandwidth"].asString();
if(!valueEipAddressesEipAddress["ReservationInternetChargeType"].isNull())
eipAddressesObject.reservationInternetChargeType = valueEipAddressesEipAddress["ReservationInternetChargeType"].asString();
if(!valueEipAddressesEipAddress["ReservationActiveTime"].isNull())
eipAddressesObject.reservationActiveTime = valueEipAddressesEipAddress["ReservationActiveTime"].asString();
if(!valueEipAddressesEipAddress["ReservationOrderType"].isNull())
eipAddressesObject.reservationOrderType = valueEipAddressesEipAddress["ReservationOrderType"].asString();
if(!valueEipAddressesEipAddress["Mode"].isNull())
eipAddressesObject.mode = valueEipAddressesEipAddress["Mode"].asString();
if(!valueEipAddressesEipAddress["DeletionProtection"].isNull())
eipAddressesObject.deletionProtection = valueEipAddressesEipAddress["DeletionProtection"].asString() == "true";
if(!valueEipAddressesEipAddress["SecondLimited"].isNull())
eipAddressesObject.secondLimited = valueEipAddressesEipAddress["SecondLimited"].asString() == "true";
auto allOperationLocksNode = allEipAddressesNode["OperationLocks"]["LockReason"];
for (auto allEipAddressesNodeOperationLocksLockReason : allOperationLocksNode)
{
EipAddress::LockReason operationLocksObject;
if(!value["LockReason"].isNull())
operationLocksObject.lockReason = value["LockReason"].asString();
if(!allEipAddressesNodeOperationLocksLockReason["LockReason"].isNull())
operationLocksObject.lockReason = allEipAddressesNodeOperationLocksLockReason["LockReason"].asString();
eipAddressesObject.operationLocks.push_back(operationLocksObject);
}
auto allTags = value["Tags"]["Tag"];
for (auto value : allTags)
auto allTagsNode = allEipAddressesNode["Tags"]["Tag"];
for (auto allEipAddressesNodeTagsTag : allTagsNode)
{
EipAddress::Tag tagsObject;
if(!value["Key"].isNull())
tagsObject.key = value["Key"].asString();
if(!value["Value"].isNull())
tagsObject.value = value["Value"].asString();
if(!allEipAddressesNodeTagsTag["Key"].isNull())
tagsObject.key = allEipAddressesNodeTagsTag["Key"].asString();
if(!allEipAddressesNodeTagsTag["Value"].isNull())
tagsObject.value = allEipAddressesNodeTagsTag["Value"].asString();
eipAddressesObject.tags.push_back(tagsObject);
}
auto allAvailableRegions = value["AvailableRegions"]["AvailableRegion"];

View File

@@ -39,16 +39,16 @@ void DescribeEipGatewayInfoResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEipInfos = value["EipInfos"]["EipInfo"];
for (auto value : allEipInfos)
auto allEipInfosNode = value["EipInfos"]["EipInfo"];
for (auto valueEipInfosEipInfo : allEipInfosNode)
{
EipInfo eipInfosObject;
if(!value["Ip"].isNull())
eipInfosObject.ip = value["Ip"].asString();
if(!value["IpGw"].isNull())
eipInfosObject.ipGw = value["IpGw"].asString();
if(!value["IpMask"].isNull())
eipInfosObject.ipMask = value["IpMask"].asString();
if(!valueEipInfosEipInfo["Ip"].isNull())
eipInfosObject.ip = valueEipInfosEipInfo["Ip"].asString();
if(!valueEipInfosEipInfo["IpGw"].isNull())
eipInfosObject.ipGw = valueEipInfosEipInfo["IpGw"].asString();
if(!valueEipInfosEipInfo["IpMask"].isNull())
eipInfosObject.ipMask = valueEipInfosEipInfo["IpMask"].asString();
eipInfos_.push_back(eipInfosObject);
}
if(!value["Code"].isNull())

View File

@@ -39,22 +39,22 @@ void DescribeEipMonitorDataResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEipMonitorDatas = value["EipMonitorDatas"]["EipMonitorData"];
for (auto value : allEipMonitorDatas)
auto allEipMonitorDatasNode = value["EipMonitorDatas"]["EipMonitorData"];
for (auto valueEipMonitorDatasEipMonitorData : allEipMonitorDatasNode)
{
EipMonitorData eipMonitorDatasObject;
if(!value["EipRX"].isNull())
eipMonitorDatasObject.eipRX = std::stoi(value["EipRX"].asString());
if(!value["EipTX"].isNull())
eipMonitorDatasObject.eipTX = std::stoi(value["EipTX"].asString());
if(!value["EipFlow"].isNull())
eipMonitorDatasObject.eipFlow = std::stoi(value["EipFlow"].asString());
if(!value["EipBandwidth"].isNull())
eipMonitorDatasObject.eipBandwidth = std::stoi(value["EipBandwidth"].asString());
if(!value["EipPackets"].isNull())
eipMonitorDatasObject.eipPackets = std::stoi(value["EipPackets"].asString());
if(!value["TimeStamp"].isNull())
eipMonitorDatasObject.timeStamp = value["TimeStamp"].asString();
if(!valueEipMonitorDatasEipMonitorData["EipRX"].isNull())
eipMonitorDatasObject.eipRX = std::stoi(valueEipMonitorDatasEipMonitorData["EipRX"].asString());
if(!valueEipMonitorDatasEipMonitorData["EipTX"].isNull())
eipMonitorDatasObject.eipTX = std::stoi(valueEipMonitorDatasEipMonitorData["EipTX"].asString());
if(!valueEipMonitorDatasEipMonitorData["EipFlow"].isNull())
eipMonitorDatasObject.eipFlow = std::stoi(valueEipMonitorDatasEipMonitorData["EipFlow"].asString());
if(!valueEipMonitorDatasEipMonitorData["EipBandwidth"].isNull())
eipMonitorDatasObject.eipBandwidth = std::stoi(valueEipMonitorDatasEipMonitorData["EipBandwidth"].asString());
if(!valueEipMonitorDatasEipMonitorData["EipPackets"].isNull())
eipMonitorDatasObject.eipPackets = std::stoi(valueEipMonitorDatasEipMonitorData["EipPackets"].asString());
if(!valueEipMonitorDatasEipMonitorData["TimeStamp"].isNull())
eipMonitorDatasObject.timeStamp = valueEipMonitorDatasEipMonitorData["TimeStamp"].asString();
eipMonitorDatas_.push_back(eipMonitorDatasObject);
}

View File

@@ -39,82 +39,82 @@ void DescribeExpressCloudConnectionsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExpressCloudConnectionSet = value["ExpressCloudConnectionSet"]["ExpressCloudConnectionType"];
for (auto value : allExpressCloudConnectionSet)
auto allExpressCloudConnectionSetNode = value["ExpressCloudConnectionSet"]["ExpressCloudConnectionType"];
for (auto valueExpressCloudConnectionSetExpressCloudConnectionType : allExpressCloudConnectionSetNode)
{
ExpressCloudConnectionType expressCloudConnectionSetObject;
if(!value["InstanceId"].isNull())
expressCloudConnectionSetObject.instanceId = value["InstanceId"].asString();
if(!value["Status"].isNull())
expressCloudConnectionSetObject.status = value["Status"].asString();
if(!value["Name"].isNull())
expressCloudConnectionSetObject.name = value["Name"].asString();
if(!value["Description"].isNull())
expressCloudConnectionSetObject.description = value["Description"].asString();
if(!value["GmtCreate"].isNull())
expressCloudConnectionSetObject.gmtCreate = value["GmtCreate"].asString();
if(!value["GmtModify"].isNull())
expressCloudConnectionSetObject.gmtModify = value["GmtModify"].asString();
if(!value["PeerCity"].isNull())
expressCloudConnectionSetObject.peerCity = value["PeerCity"].asString();
if(!value["PeerLocation"].isNull())
expressCloudConnectionSetObject.peerLocation = value["PeerLocation"].asString();
if(!value["PortType"].isNull())
expressCloudConnectionSetObject.portType = value["PortType"].asString();
if(!value["Bandwidth"].isNull())
expressCloudConnectionSetObject.bandwidth = std::stoi(value["Bandwidth"].asString());
if(!value["Distance"].isNull())
expressCloudConnectionSetObject.distance = std::stoi(value["Distance"].asString());
if(!value["RedundantEccId"].isNull())
expressCloudConnectionSetObject.redundantEccId = value["RedundantEccId"].asString();
if(!value["CircuitCode"].isNull())
expressCloudConnectionSetObject.circuitCode = value["CircuitCode"].asString();
if(!value["Isp"].isNull())
expressCloudConnectionSetObject.isp = value["Isp"].asString();
if(!value["Type"].isNull())
expressCloudConnectionSetObject.type = value["Type"].asString();
if(!value["IdcSP"].isNull())
expressCloudConnectionSetObject.idcSP = value["IdcSP"].asString();
if(!value["BusinessStatus"].isNull())
expressCloudConnectionSetObject.businessStatus = value["BusinessStatus"].asString();
if(!value["HasReservationData"].isNull())
expressCloudConnectionSetObject.hasReservationData = value["HasReservationData"].asString();
if(!value["ReservationBandwidth"].isNull())
expressCloudConnectionSetObject.reservationBandwidth = value["ReservationBandwidth"].asString();
if(!value["ReservationInternetChargeType"].isNull())
expressCloudConnectionSetObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
if(!value["ReservationActiveTime"].isNull())
expressCloudConnectionSetObject.reservationActiveTime = value["ReservationActiveTime"].asString();
if(!value["ReservationOrderType"].isNull())
expressCloudConnectionSetObject.reservationOrderType = value["ReservationOrderType"].asString();
if(!value["ApplicationType"].isNull())
expressCloudConnectionSetObject.applicationType = value["ApplicationType"].asString();
if(!value["ApplicationId"].isNull())
expressCloudConnectionSetObject.applicationId = value["ApplicationId"].asString();
if(!value["ApplicationStatus"].isNull())
expressCloudConnectionSetObject.applicationStatus = value["ApplicationStatus"].asString();
if(!value["ApplicationBandwidth"].isNull())
expressCloudConnectionSetObject.applicationBandwidth = value["ApplicationBandwidth"].asString();
if(!value["ContactTel"].isNull())
expressCloudConnectionSetObject.contactTel = value["ContactTel"].asString();
if(!value["ContactMail"].isNull())
expressCloudConnectionSetObject.contactMail = value["ContactMail"].asString();
if(!value["IDCardNo"].isNull())
expressCloudConnectionSetObject.iDCardNo = value["IDCardNo"].asString();
if(!value["EndTime"].isNull())
expressCloudConnectionSetObject.endTime = value["EndTime"].asString();
if(!value["ChargeType"].isNull())
expressCloudConnectionSetObject.chargeType = value["ChargeType"].asString();
auto allVirtualBorderRouterModels = value["VirtualBorderRouterModels"]["VirtualBorderRouterModel"];
for (auto value : allVirtualBorderRouterModels)
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["InstanceId"].isNull())
expressCloudConnectionSetObject.instanceId = valueExpressCloudConnectionSetExpressCloudConnectionType["InstanceId"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Status"].isNull())
expressCloudConnectionSetObject.status = valueExpressCloudConnectionSetExpressCloudConnectionType["Status"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Name"].isNull())
expressCloudConnectionSetObject.name = valueExpressCloudConnectionSetExpressCloudConnectionType["Name"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Description"].isNull())
expressCloudConnectionSetObject.description = valueExpressCloudConnectionSetExpressCloudConnectionType["Description"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["GmtCreate"].isNull())
expressCloudConnectionSetObject.gmtCreate = valueExpressCloudConnectionSetExpressCloudConnectionType["GmtCreate"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["GmtModify"].isNull())
expressCloudConnectionSetObject.gmtModify = valueExpressCloudConnectionSetExpressCloudConnectionType["GmtModify"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PeerCity"].isNull())
expressCloudConnectionSetObject.peerCity = valueExpressCloudConnectionSetExpressCloudConnectionType["PeerCity"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PeerLocation"].isNull())
expressCloudConnectionSetObject.peerLocation = valueExpressCloudConnectionSetExpressCloudConnectionType["PeerLocation"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["PortType"].isNull())
expressCloudConnectionSetObject.portType = valueExpressCloudConnectionSetExpressCloudConnectionType["PortType"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Bandwidth"].isNull())
expressCloudConnectionSetObject.bandwidth = std::stoi(valueExpressCloudConnectionSetExpressCloudConnectionType["Bandwidth"].asString());
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Distance"].isNull())
expressCloudConnectionSetObject.distance = std::stoi(valueExpressCloudConnectionSetExpressCloudConnectionType["Distance"].asString());
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["RedundantEccId"].isNull())
expressCloudConnectionSetObject.redundantEccId = valueExpressCloudConnectionSetExpressCloudConnectionType["RedundantEccId"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["CircuitCode"].isNull())
expressCloudConnectionSetObject.circuitCode = valueExpressCloudConnectionSetExpressCloudConnectionType["CircuitCode"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Isp"].isNull())
expressCloudConnectionSetObject.isp = valueExpressCloudConnectionSetExpressCloudConnectionType["Isp"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["Type"].isNull())
expressCloudConnectionSetObject.type = valueExpressCloudConnectionSetExpressCloudConnectionType["Type"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["IdcSP"].isNull())
expressCloudConnectionSetObject.idcSP = valueExpressCloudConnectionSetExpressCloudConnectionType["IdcSP"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["BusinessStatus"].isNull())
expressCloudConnectionSetObject.businessStatus = valueExpressCloudConnectionSetExpressCloudConnectionType["BusinessStatus"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["HasReservationData"].isNull())
expressCloudConnectionSetObject.hasReservationData = valueExpressCloudConnectionSetExpressCloudConnectionType["HasReservationData"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationBandwidth"].isNull())
expressCloudConnectionSetObject.reservationBandwidth = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationBandwidth"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationInternetChargeType"].isNull())
expressCloudConnectionSetObject.reservationInternetChargeType = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationInternetChargeType"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationActiveTime"].isNull())
expressCloudConnectionSetObject.reservationActiveTime = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationActiveTime"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationOrderType"].isNull())
expressCloudConnectionSetObject.reservationOrderType = valueExpressCloudConnectionSetExpressCloudConnectionType["ReservationOrderType"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationType"].isNull())
expressCloudConnectionSetObject.applicationType = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationType"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationId"].isNull())
expressCloudConnectionSetObject.applicationId = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationId"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationStatus"].isNull())
expressCloudConnectionSetObject.applicationStatus = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationStatus"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationBandwidth"].isNull())
expressCloudConnectionSetObject.applicationBandwidth = valueExpressCloudConnectionSetExpressCloudConnectionType["ApplicationBandwidth"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ContactTel"].isNull())
expressCloudConnectionSetObject.contactTel = valueExpressCloudConnectionSetExpressCloudConnectionType["ContactTel"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ContactMail"].isNull())
expressCloudConnectionSetObject.contactMail = valueExpressCloudConnectionSetExpressCloudConnectionType["ContactMail"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["IDCardNo"].isNull())
expressCloudConnectionSetObject.iDCardNo = valueExpressCloudConnectionSetExpressCloudConnectionType["IDCardNo"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["EndTime"].isNull())
expressCloudConnectionSetObject.endTime = valueExpressCloudConnectionSetExpressCloudConnectionType["EndTime"].asString();
if(!valueExpressCloudConnectionSetExpressCloudConnectionType["ChargeType"].isNull())
expressCloudConnectionSetObject.chargeType = valueExpressCloudConnectionSetExpressCloudConnectionType["ChargeType"].asString();
auto allVirtualBorderRouterModelsNode = allExpressCloudConnectionSetNode["VirtualBorderRouterModels"]["VirtualBorderRouterModel"];
for (auto allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel : allVirtualBorderRouterModelsNode)
{
ExpressCloudConnectionType::VirtualBorderRouterModel virtualBorderRouterModelsObject;
if(!value["InstanceId"].isNull())
virtualBorderRouterModelsObject.instanceId = value["InstanceId"].asString();
if(!value["AccessPointId"].isNull())
virtualBorderRouterModelsObject.accessPointId = value["AccessPointId"].asString();
if(!value["PhysicalConnectionId"].isNull())
virtualBorderRouterModelsObject.physicalConnectionId = value["PhysicalConnectionId"].asString();
if(!allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["InstanceId"].isNull())
virtualBorderRouterModelsObject.instanceId = allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["InstanceId"].asString();
if(!allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["AccessPointId"].isNull())
virtualBorderRouterModelsObject.accessPointId = allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["AccessPointId"].asString();
if(!allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["PhysicalConnectionId"].isNull())
virtualBorderRouterModelsObject.physicalConnectionId = allExpressCloudConnectionSetNodeVirtualBorderRouterModelsVirtualBorderRouterModel["PhysicalConnectionId"].asString();
expressCloudConnectionSetObject.virtualBorderRouterModels.push_back(virtualBorderRouterModelsObject);
}
expressCloudConnectionSet_.push_back(expressCloudConnectionSetObject);

View File

@@ -39,32 +39,32 @@ void DescribeFlowLogsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFlowLogs = value["FlowLogs"]["FlowLog"];
for (auto value : allFlowLogs)
auto allFlowLogsNode = value["FlowLogs"]["FlowLog"];
for (auto valueFlowLogsFlowLog : allFlowLogsNode)
{
FlowLog flowLogsObject;
if(!value["FlowLogId"].isNull())
flowLogsObject.flowLogId = value["FlowLogId"].asString();
if(!value["FlowLogName"].isNull())
flowLogsObject.flowLogName = value["FlowLogName"].asString();
if(!value["Description"].isNull())
flowLogsObject.description = value["Description"].asString();
if(!value["CreationTime"].isNull())
flowLogsObject.creationTime = value["CreationTime"].asString();
if(!value["ResourceType"].isNull())
flowLogsObject.resourceType = value["ResourceType"].asString();
if(!value["ResourceId"].isNull())
flowLogsObject.resourceId = value["ResourceId"].asString();
if(!value["ProjectName"].isNull())
flowLogsObject.projectName = value["ProjectName"].asString();
if(!value["LogStoreName"].isNull())
flowLogsObject.logStoreName = value["LogStoreName"].asString();
if(!value["Status"].isNull())
flowLogsObject.status = value["Status"].asString();
if(!value["TrafficType"].isNull())
flowLogsObject.trafficType = value["TrafficType"].asString();
if(!value["RegionId"].isNull())
flowLogsObject.regionId = value["RegionId"].asString();
if(!valueFlowLogsFlowLog["FlowLogId"].isNull())
flowLogsObject.flowLogId = valueFlowLogsFlowLog["FlowLogId"].asString();
if(!valueFlowLogsFlowLog["FlowLogName"].isNull())
flowLogsObject.flowLogName = valueFlowLogsFlowLog["FlowLogName"].asString();
if(!valueFlowLogsFlowLog["Description"].isNull())
flowLogsObject.description = valueFlowLogsFlowLog["Description"].asString();
if(!valueFlowLogsFlowLog["CreationTime"].isNull())
flowLogsObject.creationTime = valueFlowLogsFlowLog["CreationTime"].asString();
if(!valueFlowLogsFlowLog["ResourceType"].isNull())
flowLogsObject.resourceType = valueFlowLogsFlowLog["ResourceType"].asString();
if(!valueFlowLogsFlowLog["ResourceId"].isNull())
flowLogsObject.resourceId = valueFlowLogsFlowLog["ResourceId"].asString();
if(!valueFlowLogsFlowLog["ProjectName"].isNull())
flowLogsObject.projectName = valueFlowLogsFlowLog["ProjectName"].asString();
if(!valueFlowLogsFlowLog["LogStoreName"].isNull())
flowLogsObject.logStoreName = valueFlowLogsFlowLog["LogStoreName"].asString();
if(!valueFlowLogsFlowLog["Status"].isNull())
flowLogsObject.status = valueFlowLogsFlowLog["Status"].asString();
if(!valueFlowLogsFlowLog["TrafficType"].isNull())
flowLogsObject.trafficType = valueFlowLogsFlowLog["TrafficType"].asString();
if(!valueFlowLogsFlowLog["RegionId"].isNull())
flowLogsObject.regionId = valueFlowLogsFlowLog["RegionId"].asString();
flowLogs_.push_back(flowLogsObject);
}
if(!value["Success"].isNull())

View File

@@ -39,28 +39,28 @@ void DescribeForwardTableEntriesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allForwardTableEntries = value["ForwardTableEntries"]["ForwardTableEntry"];
for (auto value : allForwardTableEntries)
auto allForwardTableEntriesNode = value["ForwardTableEntries"]["ForwardTableEntry"];
for (auto valueForwardTableEntriesForwardTableEntry : allForwardTableEntriesNode)
{
ForwardTableEntry forwardTableEntriesObject;
if(!value["ForwardTableId"].isNull())
forwardTableEntriesObject.forwardTableId = value["ForwardTableId"].asString();
if(!value["ForwardEntryId"].isNull())
forwardTableEntriesObject.forwardEntryId = value["ForwardEntryId"].asString();
if(!value["ExternalIp"].isNull())
forwardTableEntriesObject.externalIp = value["ExternalIp"].asString();
if(!value["ExternalPort"].isNull())
forwardTableEntriesObject.externalPort = value["ExternalPort"].asString();
if(!value["IpProtocol"].isNull())
forwardTableEntriesObject.ipProtocol = value["IpProtocol"].asString();
if(!value["InternalIp"].isNull())
forwardTableEntriesObject.internalIp = value["InternalIp"].asString();
if(!value["InternalPort"].isNull())
forwardTableEntriesObject.internalPort = value["InternalPort"].asString();
if(!value["Status"].isNull())
forwardTableEntriesObject.status = value["Status"].asString();
if(!value["ForwardEntryName"].isNull())
forwardTableEntriesObject.forwardEntryName = value["ForwardEntryName"].asString();
if(!valueForwardTableEntriesForwardTableEntry["ForwardTableId"].isNull())
forwardTableEntriesObject.forwardTableId = valueForwardTableEntriesForwardTableEntry["ForwardTableId"].asString();
if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].isNull())
forwardTableEntriesObject.forwardEntryId = valueForwardTableEntriesForwardTableEntry["ForwardEntryId"].asString();
if(!valueForwardTableEntriesForwardTableEntry["ExternalIp"].isNull())
forwardTableEntriesObject.externalIp = valueForwardTableEntriesForwardTableEntry["ExternalIp"].asString();
if(!valueForwardTableEntriesForwardTableEntry["ExternalPort"].isNull())
forwardTableEntriesObject.externalPort = valueForwardTableEntriesForwardTableEntry["ExternalPort"].asString();
if(!valueForwardTableEntriesForwardTableEntry["IpProtocol"].isNull())
forwardTableEntriesObject.ipProtocol = valueForwardTableEntriesForwardTableEntry["IpProtocol"].asString();
if(!valueForwardTableEntriesForwardTableEntry["InternalIp"].isNull())
forwardTableEntriesObject.internalIp = valueForwardTableEntriesForwardTableEntry["InternalIp"].asString();
if(!valueForwardTableEntriesForwardTableEntry["InternalPort"].isNull())
forwardTableEntriesObject.internalPort = valueForwardTableEntriesForwardTableEntry["InternalPort"].asString();
if(!valueForwardTableEntriesForwardTableEntry["Status"].isNull())
forwardTableEntriesObject.status = valueForwardTableEntriesForwardTableEntry["Status"].asString();
if(!valueForwardTableEntriesForwardTableEntry["ForwardEntryName"].isNull())
forwardTableEntriesObject.forwardEntryName = valueForwardTableEntriesForwardTableEntry["ForwardEntryName"].asString();
forwardTableEntries_.push_back(forwardTableEntriesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,78 +39,78 @@ void DescribeGlobalAccelerationInstancesResult::parse(const std::string &payload
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalAccelerationInstances = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"];
for (auto value : allGlobalAccelerationInstances)
auto allGlobalAccelerationInstancesNode = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"];
for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstance : allGlobalAccelerationInstancesNode)
{
GlobalAccelerationInstance globalAccelerationInstancesObject;
if(!value["RegionId"].isNull())
globalAccelerationInstancesObject.regionId = value["RegionId"].asString();
if(!value["GlobalAccelerationInstanceId"].isNull())
globalAccelerationInstancesObject.globalAccelerationInstanceId = value["GlobalAccelerationInstanceId"].asString();
if(!value["IpAddress"].isNull())
globalAccelerationInstancesObject.ipAddress = value["IpAddress"].asString();
if(!value["Status"].isNull())
globalAccelerationInstancesObject.status = value["Status"].asString();
if(!value["Bandwidth"].isNull())
globalAccelerationInstancesObject.bandwidth = value["Bandwidth"].asString();
if(!value["InternetChargeType"].isNull())
globalAccelerationInstancesObject.internetChargeType = value["InternetChargeType"].asString();
if(!value["ChargeType"].isNull())
globalAccelerationInstancesObject.chargeType = value["ChargeType"].asString();
if(!value["BandwidthType"].isNull())
globalAccelerationInstancesObject.bandwidthType = value["BandwidthType"].asString();
if(!value["AccelerationLocation"].isNull())
globalAccelerationInstancesObject.accelerationLocation = value["AccelerationLocation"].asString();
if(!value["ServiceLocation"].isNull())
globalAccelerationInstancesObject.serviceLocation = value["ServiceLocation"].asString();
if(!value["Name"].isNull())
globalAccelerationInstancesObject.name = value["Name"].asString();
if(!value["Description"].isNull())
globalAccelerationInstancesObject.description = value["Description"].asString();
if(!value["ExpiredTime"].isNull())
globalAccelerationInstancesObject.expiredTime = value["ExpiredTime"].asString();
if(!value["CreationTime"].isNull())
globalAccelerationInstancesObject.creationTime = value["CreationTime"].asString();
if(!value["HasReservationData"].isNull())
globalAccelerationInstancesObject.hasReservationData = value["HasReservationData"].asString();
if(!value["ReservationBandwidth"].isNull())
globalAccelerationInstancesObject.reservationBandwidth = value["ReservationBandwidth"].asString();
if(!value["ReservationInternetChargeType"].isNull())
globalAccelerationInstancesObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
if(!value["ReservationActiveTime"].isNull())
globalAccelerationInstancesObject.reservationActiveTime = value["ReservationActiveTime"].asString();
if(!value["ReservationOrderType"].isNull())
globalAccelerationInstancesObject.reservationOrderType = value["ReservationOrderType"].asString();
auto allOperationLocks = value["OperationLocks"]["LockReason"];
for (auto value : allOperationLocks)
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].isNull())
globalAccelerationInstancesObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].isNull())
globalAccelerationInstancesObject.globalAccelerationInstanceId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].isNull())
globalAccelerationInstancesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Status"].isNull())
globalAccelerationInstancesObject.status = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Status"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Bandwidth"].isNull())
globalAccelerationInstancesObject.bandwidth = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Bandwidth"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["InternetChargeType"].isNull())
globalAccelerationInstancesObject.internetChargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["InternetChargeType"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ChargeType"].isNull())
globalAccelerationInstancesObject.chargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ChargeType"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["BandwidthType"].isNull())
globalAccelerationInstancesObject.bandwidthType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["BandwidthType"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["AccelerationLocation"].isNull())
globalAccelerationInstancesObject.accelerationLocation = valueGlobalAccelerationInstancesGlobalAccelerationInstance["AccelerationLocation"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServiceLocation"].isNull())
globalAccelerationInstancesObject.serviceLocation = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServiceLocation"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Name"].isNull())
globalAccelerationInstancesObject.name = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Name"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["Description"].isNull())
globalAccelerationInstancesObject.description = valueGlobalAccelerationInstancesGlobalAccelerationInstance["Description"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ExpiredTime"].isNull())
globalAccelerationInstancesObject.expiredTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ExpiredTime"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["CreationTime"].isNull())
globalAccelerationInstancesObject.creationTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["CreationTime"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["HasReservationData"].isNull())
globalAccelerationInstancesObject.hasReservationData = valueGlobalAccelerationInstancesGlobalAccelerationInstance["HasReservationData"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationBandwidth"].isNull())
globalAccelerationInstancesObject.reservationBandwidth = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationBandwidth"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationInternetChargeType"].isNull())
globalAccelerationInstancesObject.reservationInternetChargeType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationInternetChargeType"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationActiveTime"].isNull())
globalAccelerationInstancesObject.reservationActiveTime = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationActiveTime"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationOrderType"].isNull())
globalAccelerationInstancesObject.reservationOrderType = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ReservationOrderType"].asString();
auto allOperationLocksNode = allGlobalAccelerationInstancesNode["OperationLocks"]["LockReason"];
for (auto allGlobalAccelerationInstancesNodeOperationLocksLockReason : allOperationLocksNode)
{
GlobalAccelerationInstance::LockReason operationLocksObject;
if(!value["LockReason"].isNull())
operationLocksObject.lockReason = value["LockReason"].asString();
if(!allGlobalAccelerationInstancesNodeOperationLocksLockReason["LockReason"].isNull())
operationLocksObject.lockReason = allGlobalAccelerationInstancesNodeOperationLocksLockReason["LockReason"].asString();
globalAccelerationInstancesObject.operationLocks.push_back(operationLocksObject);
}
auto allBackendServers = value["BackendServers"]["BackendServer"];
for (auto value : allBackendServers)
auto allBackendServersNode = allGlobalAccelerationInstancesNode["BackendServers"]["BackendServer"];
for (auto allGlobalAccelerationInstancesNodeBackendServersBackendServer : allBackendServersNode)
{
GlobalAccelerationInstance::BackendServer backendServersObject;
if(!value["RegionId"].isNull())
backendServersObject.regionId = value["RegionId"].asString();
if(!value["ServerId"].isNull())
backendServersObject.serverId = value["ServerId"].asString();
if(!value["ServerIpAddress"].isNull())
backendServersObject.serverIpAddress = value["ServerIpAddress"].asString();
if(!value["ServerType"].isNull())
backendServersObject.serverType = value["ServerType"].asString();
if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["RegionId"].isNull())
backendServersObject.regionId = allGlobalAccelerationInstancesNodeBackendServersBackendServer["RegionId"].asString();
if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerId"].isNull())
backendServersObject.serverId = allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerId"].asString();
if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerIpAddress"].isNull())
backendServersObject.serverIpAddress = allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerIpAddress"].asString();
if(!allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerType"].isNull())
backendServersObject.serverType = allGlobalAccelerationInstancesNodeBackendServersBackendServer["ServerType"].asString();
globalAccelerationInstancesObject.backendServers.push_back(backendServersObject);
}
auto allPublicIpAddresses = value["PublicIpAddresses"]["PublicIpAddress"];
for (auto value : allPublicIpAddresses)
auto allPublicIpAddressesNode = allGlobalAccelerationInstancesNode["PublicIpAddresses"]["PublicIpAddress"];
for (auto allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress : allPublicIpAddressesNode)
{
GlobalAccelerationInstance::PublicIpAddress publicIpAddressesObject;
if(!value["AllocationId"].isNull())
publicIpAddressesObject.allocationId = value["AllocationId"].asString();
if(!value["IpAddress"].isNull())
publicIpAddressesObject.ipAddress = value["IpAddress"].asString();
if(!allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["AllocationId"].isNull())
publicIpAddressesObject.allocationId = allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["AllocationId"].asString();
if(!allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["IpAddress"].isNull())
publicIpAddressesObject.ipAddress = allGlobalAccelerationInstancesNodePublicIpAddressesPublicIpAddress["IpAddress"].asString();
globalAccelerationInstancesObject.publicIpAddresses.push_back(publicIpAddressesObject);
}
globalAccelerationInstances_.push_back(globalAccelerationInstancesObject);

View File

@@ -39,16 +39,16 @@ void DescribeGrantRulesToCenResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCenGrantRules = value["CenGrantRules"]["CbnGrantRule"];
for (auto value : allCenGrantRules)
auto allCenGrantRulesNode = value["CenGrantRules"]["CbnGrantRule"];
for (auto valueCenGrantRulesCbnGrantRule : allCenGrantRulesNode)
{
CbnGrantRule cenGrantRulesObject;
if(!value["CenInstanceId"].isNull())
cenGrantRulesObject.cenInstanceId = value["CenInstanceId"].asString();
if(!value["CenOwnerId"].isNull())
cenGrantRulesObject.cenOwnerId = std::stol(value["CenOwnerId"].asString());
if(!value["CreationTime"].isNull())
cenGrantRulesObject.creationTime = value["CreationTime"].asString();
if(!valueCenGrantRulesCbnGrantRule["CenInstanceId"].isNull())
cenGrantRulesObject.cenInstanceId = valueCenGrantRulesCbnGrantRule["CenInstanceId"].asString();
if(!valueCenGrantRulesCbnGrantRule["CenOwnerId"].isNull())
cenGrantRulesObject.cenOwnerId = std::stol(valueCenGrantRulesCbnGrantRule["CenOwnerId"].asString());
if(!valueCenGrantRulesCbnGrantRule["CreationTime"].isNull())
cenGrantRulesObject.creationTime = valueCenGrantRulesCbnGrantRule["CreationTime"].asString();
cenGrantRules_.push_back(cenGrantRulesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,32 +39,32 @@ void DescribeHaVipsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allHaVips = value["HaVips"]["HaVip"];
for (auto value : allHaVips)
auto allHaVipsNode = value["HaVips"]["HaVip"];
for (auto valueHaVipsHaVip : allHaVipsNode)
{
HaVip haVipsObject;
if(!value["HaVipId"].isNull())
haVipsObject.haVipId = value["HaVipId"].asString();
if(!value["RegionId"].isNull())
haVipsObject.regionId = value["RegionId"].asString();
if(!value["VpcId"].isNull())
haVipsObject.vpcId = value["VpcId"].asString();
if(!value["VSwitchId"].isNull())
haVipsObject.vSwitchId = value["VSwitchId"].asString();
if(!value["IpAddress"].isNull())
haVipsObject.ipAddress = value["IpAddress"].asString();
if(!value["Status"].isNull())
haVipsObject.status = value["Status"].asString();
if(!value["MasterInstanceId"].isNull())
haVipsObject.masterInstanceId = value["MasterInstanceId"].asString();
if(!value["Description"].isNull())
haVipsObject.description = value["Description"].asString();
if(!value["Name"].isNull())
haVipsObject.name = value["Name"].asString();
if(!value["ChargeType"].isNull())
haVipsObject.chargeType = value["ChargeType"].asString();
if(!value["CreateTime"].isNull())
haVipsObject.createTime = value["CreateTime"].asString();
if(!valueHaVipsHaVip["HaVipId"].isNull())
haVipsObject.haVipId = valueHaVipsHaVip["HaVipId"].asString();
if(!valueHaVipsHaVip["RegionId"].isNull())
haVipsObject.regionId = valueHaVipsHaVip["RegionId"].asString();
if(!valueHaVipsHaVip["VpcId"].isNull())
haVipsObject.vpcId = valueHaVipsHaVip["VpcId"].asString();
if(!valueHaVipsHaVip["VSwitchId"].isNull())
haVipsObject.vSwitchId = valueHaVipsHaVip["VSwitchId"].asString();
if(!valueHaVipsHaVip["IpAddress"].isNull())
haVipsObject.ipAddress = valueHaVipsHaVip["IpAddress"].asString();
if(!valueHaVipsHaVip["Status"].isNull())
haVipsObject.status = valueHaVipsHaVip["Status"].asString();
if(!valueHaVipsHaVip["MasterInstanceId"].isNull())
haVipsObject.masterInstanceId = valueHaVipsHaVip["MasterInstanceId"].asString();
if(!valueHaVipsHaVip["Description"].isNull())
haVipsObject.description = valueHaVipsHaVip["Description"].asString();
if(!valueHaVipsHaVip["Name"].isNull())
haVipsObject.name = valueHaVipsHaVip["Name"].asString();
if(!valueHaVipsHaVip["ChargeType"].isNull())
haVipsObject.chargeType = valueHaVipsHaVip["ChargeType"].asString();
if(!valueHaVipsHaVip["CreateTime"].isNull())
haVipsObject.createTime = valueHaVipsHaVip["CreateTime"].asString();
auto allAssociatedInstances = value["AssociatedInstances"]["associatedInstance"];
for (auto value : allAssociatedInstances)
haVipsObject.associatedInstances.push_back(value.asString());

View File

@@ -39,16 +39,16 @@ void DescribeIPv6TranslatorAclListAttributesResult::parse(const std::string &pay
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAclEntries = value["AclEntries"]["AclEntry"];
for (auto value : allAclEntries)
auto allAclEntriesNode = value["AclEntries"]["AclEntry"];
for (auto valueAclEntriesAclEntry : allAclEntriesNode)
{
AclEntry aclEntriesObject;
if(!value["AclEntryId"].isNull())
aclEntriesObject.aclEntryId = value["AclEntryId"].asString();
if(!value["AclEntryIp"].isNull())
aclEntriesObject.aclEntryIp = value["AclEntryIp"].asString();
if(!value["AclEntryComment"].isNull())
aclEntriesObject.aclEntryComment = value["AclEntryComment"].asString();
if(!valueAclEntriesAclEntry["AclEntryId"].isNull())
aclEntriesObject.aclEntryId = valueAclEntriesAclEntry["AclEntryId"].asString();
if(!valueAclEntriesAclEntry["AclEntryIp"].isNull())
aclEntriesObject.aclEntryIp = valueAclEntriesAclEntry["AclEntryIp"].asString();
if(!valueAclEntriesAclEntry["AclEntryComment"].isNull())
aclEntriesObject.aclEntryComment = valueAclEntriesAclEntry["AclEntryComment"].asString();
aclEntries_.push_back(aclEntriesObject);
}
if(!value["AclId"].isNull())

View File

@@ -39,14 +39,14 @@ void DescribeIPv6TranslatorAclListsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpv6TranslatorAcls = value["Ipv6TranslatorAcls"]["IPv6TranslatorAcl"];
for (auto value : allIpv6TranslatorAcls)
auto allIpv6TranslatorAclsNode = value["Ipv6TranslatorAcls"]["IPv6TranslatorAcl"];
for (auto valueIpv6TranslatorAclsIPv6TranslatorAcl : allIpv6TranslatorAclsNode)
{
IPv6TranslatorAcl ipv6TranslatorAclsObject;
if(!value["AclId"].isNull())
ipv6TranslatorAclsObject.aclId = value["AclId"].asString();
if(!value["AclName"].isNull())
ipv6TranslatorAclsObject.aclName = value["AclName"].asString();
if(!valueIpv6TranslatorAclsIPv6TranslatorAcl["AclId"].isNull())
ipv6TranslatorAclsObject.aclId = valueIpv6TranslatorAclsIPv6TranslatorAcl["AclId"].asString();
if(!valueIpv6TranslatorAclsIPv6TranslatorAcl["AclName"].isNull())
ipv6TranslatorAclsObject.aclName = valueIpv6TranslatorAclsIPv6TranslatorAcl["AclName"].asString();
ipv6TranslatorAcls_.push_back(ipv6TranslatorAclsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,40 +39,40 @@ void DescribeIPv6TranslatorEntriesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpv6TranslatorEntries = value["Ipv6TranslatorEntries"]["Ipv6TranslatorEntry"];
for (auto value : allIpv6TranslatorEntries)
auto allIpv6TranslatorEntriesNode = value["Ipv6TranslatorEntries"]["Ipv6TranslatorEntry"];
for (auto valueIpv6TranslatorEntriesIpv6TranslatorEntry : allIpv6TranslatorEntriesNode)
{
Ipv6TranslatorEntry ipv6TranslatorEntriesObject;
if(!value["Ipv6TranslatorId"].isNull())
ipv6TranslatorEntriesObject.ipv6TranslatorId = value["Ipv6TranslatorId"].asString();
if(!value["Ipv6TranslatorEntryId"].isNull())
ipv6TranslatorEntriesObject.ipv6TranslatorEntryId = value["Ipv6TranslatorEntryId"].asString();
if(!value["AllocateIpv6Addr"].isNull())
ipv6TranslatorEntriesObject.allocateIpv6Addr = value["AllocateIpv6Addr"].asString();
if(!value["AllocateIpv6Port"].isNull())
ipv6TranslatorEntriesObject.allocateIpv6Port = std::stoi(value["AllocateIpv6Port"].asString());
if(!value["BackendIpv4Addr"].isNull())
ipv6TranslatorEntriesObject.backendIpv4Addr = value["BackendIpv4Addr"].asString();
if(!value["BackendIpv4Port"].isNull())
ipv6TranslatorEntriesObject.backendIpv4Port = value["BackendIpv4Port"].asString();
if(!value["TransProtocol"].isNull())
ipv6TranslatorEntriesObject.transProtocol = value["TransProtocol"].asString();
if(!value["EntryBandwidth"].isNull())
ipv6TranslatorEntriesObject.entryBandwidth = value["EntryBandwidth"].asString();
if(!value["EntryDescription"].isNull())
ipv6TranslatorEntriesObject.entryDescription = value["EntryDescription"].asString();
if(!value["EntryName"].isNull())
ipv6TranslatorEntriesObject.entryName = value["EntryName"].asString();
if(!value["EntryStatus"].isNull())
ipv6TranslatorEntriesObject.entryStatus = value["EntryStatus"].asString();
if(!value["AclStatus"].isNull())
ipv6TranslatorEntriesObject.aclStatus = value["AclStatus"].asString();
if(!value["AclType"].isNull())
ipv6TranslatorEntriesObject.aclType = value["AclType"].asString();
if(!value["AclId"].isNull())
ipv6TranslatorEntriesObject.aclId = value["AclId"].asString();
if(!value["RegionId"].isNull())
ipv6TranslatorEntriesObject.regionId = value["RegionId"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorId"].isNull())
ipv6TranslatorEntriesObject.ipv6TranslatorId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorId"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorEntryId"].isNull())
ipv6TranslatorEntriesObject.ipv6TranslatorEntryId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["Ipv6TranslatorEntryId"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Addr"].isNull())
ipv6TranslatorEntriesObject.allocateIpv6Addr = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Addr"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Port"].isNull())
ipv6TranslatorEntriesObject.allocateIpv6Port = std::stoi(valueIpv6TranslatorEntriesIpv6TranslatorEntry["AllocateIpv6Port"].asString());
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Addr"].isNull())
ipv6TranslatorEntriesObject.backendIpv4Addr = valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Addr"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Port"].isNull())
ipv6TranslatorEntriesObject.backendIpv4Port = valueIpv6TranslatorEntriesIpv6TranslatorEntry["BackendIpv4Port"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["TransProtocol"].isNull())
ipv6TranslatorEntriesObject.transProtocol = valueIpv6TranslatorEntriesIpv6TranslatorEntry["TransProtocol"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryBandwidth"].isNull())
ipv6TranslatorEntriesObject.entryBandwidth = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryBandwidth"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryDescription"].isNull())
ipv6TranslatorEntriesObject.entryDescription = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryDescription"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryName"].isNull())
ipv6TranslatorEntriesObject.entryName = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryName"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryStatus"].isNull())
ipv6TranslatorEntriesObject.entryStatus = valueIpv6TranslatorEntriesIpv6TranslatorEntry["EntryStatus"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclStatus"].isNull())
ipv6TranslatorEntriesObject.aclStatus = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclStatus"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclType"].isNull())
ipv6TranslatorEntriesObject.aclType = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclType"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclId"].isNull())
ipv6TranslatorEntriesObject.aclId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["AclId"].asString();
if(!valueIpv6TranslatorEntriesIpv6TranslatorEntry["RegionId"].isNull())
ipv6TranslatorEntriesObject.regionId = valueIpv6TranslatorEntriesIpv6TranslatorEntry["RegionId"].asString();
ipv6TranslatorEntries_.push_back(ipv6TranslatorEntriesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,38 +39,38 @@ void DescribeIPv6TranslatorsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpv6Translators = value["Ipv6Translators"]["Ipv6Translator"];
for (auto value : allIpv6Translators)
auto allIpv6TranslatorsNode = value["Ipv6Translators"]["Ipv6Translator"];
for (auto valueIpv6TranslatorsIpv6Translator : allIpv6TranslatorsNode)
{
Ipv6Translator ipv6TranslatorsObject;
if(!value["Ipv6TranslatorId"].isNull())
ipv6TranslatorsObject.ipv6TranslatorId = value["Ipv6TranslatorId"].asString();
if(!value["CreateTime"].isNull())
ipv6TranslatorsObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["EndTime"].isNull())
ipv6TranslatorsObject.endTime = std::stol(value["EndTime"].asString());
if(!value["Spec"].isNull())
ipv6TranslatorsObject.spec = value["Spec"].asString();
if(!value["Name"].isNull())
ipv6TranslatorsObject.name = value["Name"].asString();
if(!value["Description"].isNull())
ipv6TranslatorsObject.description = value["Description"].asString();
if(!value["Status"].isNull())
ipv6TranslatorsObject.status = value["Status"].asString();
if(!value["BusinessStatus"].isNull())
ipv6TranslatorsObject.businessStatus = value["BusinessStatus"].asString();
if(!value["PayType"].isNull())
ipv6TranslatorsObject.payType = value["PayType"].asString();
if(!value["Bandwidth"].isNull())
ipv6TranslatorsObject.bandwidth = std::stoi(value["Bandwidth"].asString());
if(!value["AllocateIpv6Addr"].isNull())
ipv6TranslatorsObject.allocateIpv6Addr = value["AllocateIpv6Addr"].asString();
if(!value["AllocateIpv4Addr"].isNull())
ipv6TranslatorsObject.allocateIpv4Addr = value["AllocateIpv4Addr"].asString();
if(!value["AvailableBandwidth"].isNull())
ipv6TranslatorsObject.availableBandwidth = value["AvailableBandwidth"].asString();
if(!value["RegionId"].isNull())
ipv6TranslatorsObject.regionId = value["RegionId"].asString();
if(!valueIpv6TranslatorsIpv6Translator["Ipv6TranslatorId"].isNull())
ipv6TranslatorsObject.ipv6TranslatorId = valueIpv6TranslatorsIpv6Translator["Ipv6TranslatorId"].asString();
if(!valueIpv6TranslatorsIpv6Translator["CreateTime"].isNull())
ipv6TranslatorsObject.createTime = std::stol(valueIpv6TranslatorsIpv6Translator["CreateTime"].asString());
if(!valueIpv6TranslatorsIpv6Translator["EndTime"].isNull())
ipv6TranslatorsObject.endTime = std::stol(valueIpv6TranslatorsIpv6Translator["EndTime"].asString());
if(!valueIpv6TranslatorsIpv6Translator["Spec"].isNull())
ipv6TranslatorsObject.spec = valueIpv6TranslatorsIpv6Translator["Spec"].asString();
if(!valueIpv6TranslatorsIpv6Translator["Name"].isNull())
ipv6TranslatorsObject.name = valueIpv6TranslatorsIpv6Translator["Name"].asString();
if(!valueIpv6TranslatorsIpv6Translator["Description"].isNull())
ipv6TranslatorsObject.description = valueIpv6TranslatorsIpv6Translator["Description"].asString();
if(!valueIpv6TranslatorsIpv6Translator["Status"].isNull())
ipv6TranslatorsObject.status = valueIpv6TranslatorsIpv6Translator["Status"].asString();
if(!valueIpv6TranslatorsIpv6Translator["BusinessStatus"].isNull())
ipv6TranslatorsObject.businessStatus = valueIpv6TranslatorsIpv6Translator["BusinessStatus"].asString();
if(!valueIpv6TranslatorsIpv6Translator["PayType"].isNull())
ipv6TranslatorsObject.payType = valueIpv6TranslatorsIpv6Translator["PayType"].asString();
if(!valueIpv6TranslatorsIpv6Translator["Bandwidth"].isNull())
ipv6TranslatorsObject.bandwidth = std::stoi(valueIpv6TranslatorsIpv6Translator["Bandwidth"].asString());
if(!valueIpv6TranslatorsIpv6Translator["AllocateIpv6Addr"].isNull())
ipv6TranslatorsObject.allocateIpv6Addr = valueIpv6TranslatorsIpv6Translator["AllocateIpv6Addr"].asString();
if(!valueIpv6TranslatorsIpv6Translator["AllocateIpv4Addr"].isNull())
ipv6TranslatorsObject.allocateIpv4Addr = valueIpv6TranslatorsIpv6Translator["AllocateIpv4Addr"].asString();
if(!valueIpv6TranslatorsIpv6Translator["AvailableBandwidth"].isNull())
ipv6TranslatorsObject.availableBandwidth = valueIpv6TranslatorsIpv6Translator["AvailableBandwidth"].asString();
if(!valueIpv6TranslatorsIpv6Translator["RegionId"].isNull())
ipv6TranslatorsObject.regionId = valueIpv6TranslatorsIpv6Translator["RegionId"].asString();
auto allIpv6TranslatorEntryIds = value["Ipv6TranslatorEntryIds"]["Ipv6TranslatorEntryId"];
for (auto value : allIpv6TranslatorEntryIds)
ipv6TranslatorsObject.ipv6TranslatorEntryIds.push_back(value.asString());

View File

@@ -39,34 +39,34 @@ void DescribeIpv6AddressesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpv6Addresses = value["Ipv6Addresses"]["Ipv6Address"];
for (auto value : allIpv6Addresses)
auto allIpv6AddressesNode = value["Ipv6Addresses"]["Ipv6Address"];
for (auto valueIpv6AddressesIpv6Address : allIpv6AddressesNode)
{
Ipv6Address ipv6AddressesObject;
if(!value["Ipv6AddressId"].isNull())
ipv6AddressesObject.ipv6AddressId = value["Ipv6AddressId"].asString();
if(!value["Ipv6AddressName"].isNull())
ipv6AddressesObject.ipv6AddressName = value["Ipv6AddressName"].asString();
if(!value["VSwitchId"].isNull())
ipv6AddressesObject.vSwitchId = value["VSwitchId"].asString();
if(!value["VpcId"].isNull())
ipv6AddressesObject.vpcId = value["VpcId"].asString();
if(!value["Ipv6GatewayId"].isNull())
ipv6AddressesObject.ipv6GatewayId = value["Ipv6GatewayId"].asString();
if(!value["Ipv6Address"].isNull())
ipv6AddressesObject.ipv6Address = value["Ipv6Address"].asString();
if(!value["AssociatedInstanceId"].isNull())
ipv6AddressesObject.associatedInstanceId = value["AssociatedInstanceId"].asString();
if(!value["AssociatedInstanceType"].isNull())
ipv6AddressesObject.associatedInstanceType = value["AssociatedInstanceType"].asString();
if(!value["Status"].isNull())
ipv6AddressesObject.status = value["Status"].asString();
if(!value["NetworkType"].isNull())
ipv6AddressesObject.networkType = value["NetworkType"].asString();
if(!value["RealBandwidth"].isNull())
ipv6AddressesObject.realBandwidth = std::stoi(value["RealBandwidth"].asString());
if(!value["AllocationTime"].isNull())
ipv6AddressesObject.allocationTime = value["AllocationTime"].asString();
if(!valueIpv6AddressesIpv6Address["Ipv6AddressId"].isNull())
ipv6AddressesObject.ipv6AddressId = valueIpv6AddressesIpv6Address["Ipv6AddressId"].asString();
if(!valueIpv6AddressesIpv6Address["Ipv6AddressName"].isNull())
ipv6AddressesObject.ipv6AddressName = valueIpv6AddressesIpv6Address["Ipv6AddressName"].asString();
if(!valueIpv6AddressesIpv6Address["VSwitchId"].isNull())
ipv6AddressesObject.vSwitchId = valueIpv6AddressesIpv6Address["VSwitchId"].asString();
if(!valueIpv6AddressesIpv6Address["VpcId"].isNull())
ipv6AddressesObject.vpcId = valueIpv6AddressesIpv6Address["VpcId"].asString();
if(!valueIpv6AddressesIpv6Address["Ipv6GatewayId"].isNull())
ipv6AddressesObject.ipv6GatewayId = valueIpv6AddressesIpv6Address["Ipv6GatewayId"].asString();
if(!valueIpv6AddressesIpv6Address["Ipv6Address"].isNull())
ipv6AddressesObject.ipv6Address = valueIpv6AddressesIpv6Address["Ipv6Address"].asString();
if(!valueIpv6AddressesIpv6Address["AssociatedInstanceId"].isNull())
ipv6AddressesObject.associatedInstanceId = valueIpv6AddressesIpv6Address["AssociatedInstanceId"].asString();
if(!valueIpv6AddressesIpv6Address["AssociatedInstanceType"].isNull())
ipv6AddressesObject.associatedInstanceType = valueIpv6AddressesIpv6Address["AssociatedInstanceType"].asString();
if(!valueIpv6AddressesIpv6Address["Status"].isNull())
ipv6AddressesObject.status = valueIpv6AddressesIpv6Address["Status"].asString();
if(!valueIpv6AddressesIpv6Address["NetworkType"].isNull())
ipv6AddressesObject.networkType = valueIpv6AddressesIpv6Address["NetworkType"].asString();
if(!valueIpv6AddressesIpv6Address["RealBandwidth"].isNull())
ipv6AddressesObject.realBandwidth = std::stoi(valueIpv6AddressesIpv6Address["RealBandwidth"].asString());
if(!valueIpv6AddressesIpv6Address["AllocationTime"].isNull())
ipv6AddressesObject.allocationTime = valueIpv6AddressesIpv6Address["AllocationTime"].asString();
auto ipv6InternetBandwidthNode = value["Ipv6InternetBandwidth"];
if(!ipv6InternetBandwidthNode["Bandwidth"].isNull())
ipv6AddressesObject.ipv6InternetBandwidth.bandwidth = std::stoi(ipv6InternetBandwidthNode["Bandwidth"].asString());

View File

@@ -39,22 +39,22 @@ void DescribeIpv6EgressOnlyRulesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpv6EgressOnlyRules = value["Ipv6EgressOnlyRules"]["Ipv6EgressOnlyRule"];
for (auto value : allIpv6EgressOnlyRules)
auto allIpv6EgressOnlyRulesNode = value["Ipv6EgressOnlyRules"]["Ipv6EgressOnlyRule"];
for (auto valueIpv6EgressOnlyRulesIpv6EgressOnlyRule : allIpv6EgressOnlyRulesNode)
{
Ipv6EgressOnlyRule ipv6EgressOnlyRulesObject;
if(!value["Ipv6EgressOnlyRuleId"].isNull())
ipv6EgressOnlyRulesObject.ipv6EgressOnlyRuleId = value["Ipv6EgressOnlyRuleId"].asString();
if(!value["InstanceType"].isNull())
ipv6EgressOnlyRulesObject.instanceType = value["InstanceType"].asString();
if(!value["InstanceId"].isNull())
ipv6EgressOnlyRulesObject.instanceId = value["InstanceId"].asString();
if(!value["Status"].isNull())
ipv6EgressOnlyRulesObject.status = value["Status"].asString();
if(!value["Name"].isNull())
ipv6EgressOnlyRulesObject.name = value["Name"].asString();
if(!value["Description"].isNull())
ipv6EgressOnlyRulesObject.description = value["Description"].asString();
if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Ipv6EgressOnlyRuleId"].isNull())
ipv6EgressOnlyRulesObject.ipv6EgressOnlyRuleId = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Ipv6EgressOnlyRuleId"].asString();
if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceType"].isNull())
ipv6EgressOnlyRulesObject.instanceType = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceType"].asString();
if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceId"].isNull())
ipv6EgressOnlyRulesObject.instanceId = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["InstanceId"].asString();
if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Status"].isNull())
ipv6EgressOnlyRulesObject.status = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Status"].asString();
if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Name"].isNull())
ipv6EgressOnlyRulesObject.name = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Name"].asString();
if(!valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Description"].isNull())
ipv6EgressOnlyRulesObject.description = valueIpv6EgressOnlyRulesIpv6EgressOnlyRule["Description"].asString();
ipv6EgressOnlyRules_.push_back(ipv6EgressOnlyRulesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,32 +39,32 @@ void DescribeIpv6GatewaysResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpv6Gateways = value["Ipv6Gateways"]["Ipv6Gateway"];
for (auto value : allIpv6Gateways)
auto allIpv6GatewaysNode = value["Ipv6Gateways"]["Ipv6Gateway"];
for (auto valueIpv6GatewaysIpv6Gateway : allIpv6GatewaysNode)
{
Ipv6Gateway ipv6GatewaysObject;
if(!value["RegionId"].isNull())
ipv6GatewaysObject.regionId = value["RegionId"].asString();
if(!value["Ipv6GatewayId"].isNull())
ipv6GatewaysObject.ipv6GatewayId = value["Ipv6GatewayId"].asString();
if(!value["VpcId"].isNull())
ipv6GatewaysObject.vpcId = value["VpcId"].asString();
if(!value["Status"].isNull())
ipv6GatewaysObject.status = value["Status"].asString();
if(!value["Name"].isNull())
ipv6GatewaysObject.name = value["Name"].asString();
if(!value["Description"].isNull())
ipv6GatewaysObject.description = value["Description"].asString();
if(!value["Spec"].isNull())
ipv6GatewaysObject.spec = value["Spec"].asString();
if(!value["InstanceChargeType"].isNull())
ipv6GatewaysObject.instanceChargeType = value["InstanceChargeType"].asString();
if(!value["BusinessStatus"].isNull())
ipv6GatewaysObject.businessStatus = value["BusinessStatus"].asString();
if(!value["ExpiredTime"].isNull())
ipv6GatewaysObject.expiredTime = value["ExpiredTime"].asString();
if(!value["CreationTime"].isNull())
ipv6GatewaysObject.creationTime = value["CreationTime"].asString();
if(!valueIpv6GatewaysIpv6Gateway["RegionId"].isNull())
ipv6GatewaysObject.regionId = valueIpv6GatewaysIpv6Gateway["RegionId"].asString();
if(!valueIpv6GatewaysIpv6Gateway["Ipv6GatewayId"].isNull())
ipv6GatewaysObject.ipv6GatewayId = valueIpv6GatewaysIpv6Gateway["Ipv6GatewayId"].asString();
if(!valueIpv6GatewaysIpv6Gateway["VpcId"].isNull())
ipv6GatewaysObject.vpcId = valueIpv6GatewaysIpv6Gateway["VpcId"].asString();
if(!valueIpv6GatewaysIpv6Gateway["Status"].isNull())
ipv6GatewaysObject.status = valueIpv6GatewaysIpv6Gateway["Status"].asString();
if(!valueIpv6GatewaysIpv6Gateway["Name"].isNull())
ipv6GatewaysObject.name = valueIpv6GatewaysIpv6Gateway["Name"].asString();
if(!valueIpv6GatewaysIpv6Gateway["Description"].isNull())
ipv6GatewaysObject.description = valueIpv6GatewaysIpv6Gateway["Description"].asString();
if(!valueIpv6GatewaysIpv6Gateway["Spec"].isNull())
ipv6GatewaysObject.spec = valueIpv6GatewaysIpv6Gateway["Spec"].asString();
if(!valueIpv6GatewaysIpv6Gateway["InstanceChargeType"].isNull())
ipv6GatewaysObject.instanceChargeType = valueIpv6GatewaysIpv6Gateway["InstanceChargeType"].asString();
if(!valueIpv6GatewaysIpv6Gateway["BusinessStatus"].isNull())
ipv6GatewaysObject.businessStatus = valueIpv6GatewaysIpv6Gateway["BusinessStatus"].asString();
if(!valueIpv6GatewaysIpv6Gateway["ExpiredTime"].isNull())
ipv6GatewaysObject.expiredTime = valueIpv6GatewaysIpv6Gateway["ExpiredTime"].asString();
if(!valueIpv6GatewaysIpv6Gateway["CreationTime"].isNull())
ipv6GatewaysObject.creationTime = valueIpv6GatewaysIpv6Gateway["CreationTime"].asString();
ipv6Gateways_.push_back(ipv6GatewaysObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,48 +39,48 @@ void DescribeNatGatewaysResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNatGateways = value["NatGateways"]["NatGateway"];
for (auto value : allNatGateways)
auto allNatGatewaysNode = value["NatGateways"]["NatGateway"];
for (auto valueNatGatewaysNatGateway : allNatGatewaysNode)
{
NatGateway natGatewaysObject;
if(!value["NatGatewayId"].isNull())
natGatewaysObject.natGatewayId = value["NatGatewayId"].asString();
if(!value["RegionId"].isNull())
natGatewaysObject.regionId = value["RegionId"].asString();
if(!value["Name"].isNull())
natGatewaysObject.name = value["Name"].asString();
if(!value["Description"].isNull())
natGatewaysObject.description = value["Description"].asString();
if(!value["VpcId"].isNull())
natGatewaysObject.vpcId = value["VpcId"].asString();
if(!value["Spec"].isNull())
natGatewaysObject.spec = value["Spec"].asString();
if(!value["InstanceChargeType"].isNull())
natGatewaysObject.instanceChargeType = value["InstanceChargeType"].asString();
if(!value["ExpiredTime"].isNull())
natGatewaysObject.expiredTime = value["ExpiredTime"].asString();
if(!value["AutoPay"].isNull())
natGatewaysObject.autoPay = value["AutoPay"].asString() == "true";
if(!value["BusinessStatus"].isNull())
natGatewaysObject.businessStatus = value["BusinessStatus"].asString();
if(!value["CreationTime"].isNull())
natGatewaysObject.creationTime = value["CreationTime"].asString();
if(!value["Status"].isNull())
natGatewaysObject.status = value["Status"].asString();
if(!value["DeletionProtection"].isNull())
natGatewaysObject.deletionProtection = value["DeletionProtection"].asString() == "true";
auto allIpLists = value["IpLists"]["IpList"];
for (auto value : allIpLists)
if(!valueNatGatewaysNatGateway["NatGatewayId"].isNull())
natGatewaysObject.natGatewayId = valueNatGatewaysNatGateway["NatGatewayId"].asString();
if(!valueNatGatewaysNatGateway["RegionId"].isNull())
natGatewaysObject.regionId = valueNatGatewaysNatGateway["RegionId"].asString();
if(!valueNatGatewaysNatGateway["Name"].isNull())
natGatewaysObject.name = valueNatGatewaysNatGateway["Name"].asString();
if(!valueNatGatewaysNatGateway["Description"].isNull())
natGatewaysObject.description = valueNatGatewaysNatGateway["Description"].asString();
if(!valueNatGatewaysNatGateway["VpcId"].isNull())
natGatewaysObject.vpcId = valueNatGatewaysNatGateway["VpcId"].asString();
if(!valueNatGatewaysNatGateway["Spec"].isNull())
natGatewaysObject.spec = valueNatGatewaysNatGateway["Spec"].asString();
if(!valueNatGatewaysNatGateway["InstanceChargeType"].isNull())
natGatewaysObject.instanceChargeType = valueNatGatewaysNatGateway["InstanceChargeType"].asString();
if(!valueNatGatewaysNatGateway["ExpiredTime"].isNull())
natGatewaysObject.expiredTime = valueNatGatewaysNatGateway["ExpiredTime"].asString();
if(!valueNatGatewaysNatGateway["AutoPay"].isNull())
natGatewaysObject.autoPay = valueNatGatewaysNatGateway["AutoPay"].asString() == "true";
if(!valueNatGatewaysNatGateway["BusinessStatus"].isNull())
natGatewaysObject.businessStatus = valueNatGatewaysNatGateway["BusinessStatus"].asString();
if(!valueNatGatewaysNatGateway["CreationTime"].isNull())
natGatewaysObject.creationTime = valueNatGatewaysNatGateway["CreationTime"].asString();
if(!valueNatGatewaysNatGateway["Status"].isNull())
natGatewaysObject.status = valueNatGatewaysNatGateway["Status"].asString();
if(!valueNatGatewaysNatGateway["DeletionProtection"].isNull())
natGatewaysObject.deletionProtection = valueNatGatewaysNatGateway["DeletionProtection"].asString() == "true";
auto allIpListsNode = allNatGatewaysNode["IpLists"]["IpList"];
for (auto allNatGatewaysNodeIpListsIpList : allIpListsNode)
{
NatGateway::IpList ipListsObject;
if(!value["AllocationId"].isNull())
ipListsObject.allocationId = value["AllocationId"].asString();
if(!value["IpAddress"].isNull())
ipListsObject.ipAddress = value["IpAddress"].asString();
if(!value["UsingStatus"].isNull())
ipListsObject.usingStatus = value["UsingStatus"].asString();
if(!value["ApAccessEnabled"].isNull())
ipListsObject.apAccessEnabled = value["ApAccessEnabled"].asString() == "true";
if(!allNatGatewaysNodeIpListsIpList["AllocationId"].isNull())
ipListsObject.allocationId = allNatGatewaysNodeIpListsIpList["AllocationId"].asString();
if(!allNatGatewaysNodeIpListsIpList["IpAddress"].isNull())
ipListsObject.ipAddress = allNatGatewaysNodeIpListsIpList["IpAddress"].asString();
if(!allNatGatewaysNodeIpListsIpList["UsingStatus"].isNull())
ipListsObject.usingStatus = allNatGatewaysNodeIpListsIpList["UsingStatus"].asString();
if(!allNatGatewaysNodeIpListsIpList["ApAccessEnabled"].isNull())
ipListsObject.apAccessEnabled = allNatGatewaysNodeIpListsIpList["ApAccessEnabled"].asString() == "true";
natGatewaysObject.ipLists.push_back(ipListsObject);
}
auto allForwardTableIds = value["ForwardTableIds"]["ForwardTableId"];

View File

@@ -54,60 +54,60 @@ void DescribeNetworkAclAttributesResult::parse(const std::string &payload)
networkAclAttribute_.creationTime = networkAclAttributeNode["CreationTime"].asString();
if(!networkAclAttributeNode["Status"].isNull())
networkAclAttribute_.status = networkAclAttributeNode["Status"].asString();
auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"];
for (auto value : allIngressAclEntries)
auto allIngressAclEntriesNode = networkAclAttributeNode["IngressAclEntries"]["IngressAclEntry"];
for (auto networkAclAttributeNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode)
{
NetworkAclAttribute::IngressAclEntry ingressAclEntryObject;
if(!value["NetworkAclEntryId"].isNull())
ingressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
if(!value["Policy"].isNull())
ingressAclEntryObject.policy = value["Policy"].asString();
if(!value["Protocol"].isNull())
ingressAclEntryObject.protocol = value["Protocol"].asString();
if(!value["SourceCidrIp"].isNull())
ingressAclEntryObject.sourceCidrIp = value["SourceCidrIp"].asString();
if(!value["Port"].isNull())
ingressAclEntryObject.port = value["Port"].asString();
if(!value["EntryType"].isNull())
ingressAclEntryObject.entryType = value["EntryType"].asString();
if(!value["NetworkAclEntryName"].isNull())
ingressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
if(!value["Description"].isNull())
ingressAclEntryObject.description = value["Description"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull())
ingressAclEntryObject.networkAclEntryId = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].isNull())
ingressAclEntryObject.policy = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Policy"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull())
ingressAclEntryObject.protocol = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Protocol"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull())
ingressAclEntryObject.sourceCidrIp = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].isNull())
ingressAclEntryObject.port = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Port"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].isNull())
ingressAclEntryObject.entryType = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["EntryType"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull())
ingressAclEntryObject.networkAclEntryName = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString();
if(!networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].isNull())
ingressAclEntryObject.description = networkAclAttributeNodeIngressAclEntriesIngressAclEntry["Description"].asString();
networkAclAttribute_.ingressAclEntries.push_back(ingressAclEntryObject);
}
auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"];
for (auto value : allEgressAclEntries)
auto allEgressAclEntriesNode = networkAclAttributeNode["EgressAclEntries"]["EgressAclEntry"];
for (auto networkAclAttributeNodeEgressAclEntriesEgressAclEntry : allEgressAclEntriesNode)
{
NetworkAclAttribute::EgressAclEntry egressAclEntryObject;
if(!value["NetworkAclEntryId"].isNull())
egressAclEntryObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
if(!value["Policy"].isNull())
egressAclEntryObject.policy = value["Policy"].asString();
if(!value["Protocol"].isNull())
egressAclEntryObject.protocol = value["Protocol"].asString();
if(!value["DestinationCidrIp"].isNull())
egressAclEntryObject.destinationCidrIp = value["DestinationCidrIp"].asString();
if(!value["Port"].isNull())
egressAclEntryObject.port = value["Port"].asString();
if(!value["EntryType"].isNull())
egressAclEntryObject.entryType = value["EntryType"].asString();
if(!value["Description"].isNull())
egressAclEntryObject.description = value["Description"].asString();
if(!value["NetworkAclEntryName"].isNull())
egressAclEntryObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull())
egressAclEntryObject.networkAclEntryId = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].isNull())
egressAclEntryObject.policy = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Policy"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].isNull())
egressAclEntryObject.protocol = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Protocol"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull())
egressAclEntryObject.destinationCidrIp = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].isNull())
egressAclEntryObject.port = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Port"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull())
egressAclEntryObject.entryType = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["EntryType"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].isNull())
egressAclEntryObject.description = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["Description"].asString();
if(!networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull())
egressAclEntryObject.networkAclEntryName = networkAclAttributeNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString();
networkAclAttribute_.egressAclEntries.push_back(egressAclEntryObject);
}
auto allResources = value["Resources"]["Resource"];
for (auto value : allResources)
auto allResourcesNode = networkAclAttributeNode["Resources"]["Resource"];
for (auto networkAclAttributeNodeResourcesResource : allResourcesNode)
{
NetworkAclAttribute::Resource resourceObject;
if(!value["ResourceId"].isNull())
resourceObject.resourceId = value["ResourceId"].asString();
if(!value["ResourceType"].isNull())
resourceObject.resourceType = value["ResourceType"].asString();
if(!value["Status"].isNull())
resourceObject.status = value["Status"].asString();
if(!networkAclAttributeNodeResourcesResource["ResourceId"].isNull())
resourceObject.resourceId = networkAclAttributeNodeResourcesResource["ResourceId"].asString();
if(!networkAclAttributeNodeResourcesResource["ResourceType"].isNull())
resourceObject.resourceType = networkAclAttributeNodeResourcesResource["ResourceType"].asString();
if(!networkAclAttributeNodeResourcesResource["Status"].isNull())
resourceObject.status = networkAclAttributeNodeResourcesResource["Status"].asString();
networkAclAttribute_.resources.push_back(resourceObject);
}

View File

@@ -39,78 +39,78 @@ void DescribeNetworkAclsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNetworkAcls = value["NetworkAcls"]["NetworkAcl"];
for (auto value : allNetworkAcls)
auto allNetworkAclsNode = value["NetworkAcls"]["NetworkAcl"];
for (auto valueNetworkAclsNetworkAcl : allNetworkAclsNode)
{
NetworkAcl networkAclsObject;
if(!value["NetworkAclId"].isNull())
networkAclsObject.networkAclId = value["NetworkAclId"].asString();
if(!value["RegionId"].isNull())
networkAclsObject.regionId = value["RegionId"].asString();
if(!value["NetworkAclName"].isNull())
networkAclsObject.networkAclName = value["NetworkAclName"].asString();
if(!value["Description"].isNull())
networkAclsObject.description = value["Description"].asString();
if(!value["VpcId"].isNull())
networkAclsObject.vpcId = value["VpcId"].asString();
if(!value["CreationTime"].isNull())
networkAclsObject.creationTime = value["CreationTime"].asString();
if(!value["Status"].isNull())
networkAclsObject.status = value["Status"].asString();
auto allIngressAclEntries = value["IngressAclEntries"]["IngressAclEntry"];
for (auto value : allIngressAclEntries)
if(!valueNetworkAclsNetworkAcl["NetworkAclId"].isNull())
networkAclsObject.networkAclId = valueNetworkAclsNetworkAcl["NetworkAclId"].asString();
if(!valueNetworkAclsNetworkAcl["RegionId"].isNull())
networkAclsObject.regionId = valueNetworkAclsNetworkAcl["RegionId"].asString();
if(!valueNetworkAclsNetworkAcl["NetworkAclName"].isNull())
networkAclsObject.networkAclName = valueNetworkAclsNetworkAcl["NetworkAclName"].asString();
if(!valueNetworkAclsNetworkAcl["Description"].isNull())
networkAclsObject.description = valueNetworkAclsNetworkAcl["Description"].asString();
if(!valueNetworkAclsNetworkAcl["VpcId"].isNull())
networkAclsObject.vpcId = valueNetworkAclsNetworkAcl["VpcId"].asString();
if(!valueNetworkAclsNetworkAcl["CreationTime"].isNull())
networkAclsObject.creationTime = valueNetworkAclsNetworkAcl["CreationTime"].asString();
if(!valueNetworkAclsNetworkAcl["Status"].isNull())
networkAclsObject.status = valueNetworkAclsNetworkAcl["Status"].asString();
auto allIngressAclEntriesNode = allNetworkAclsNode["IngressAclEntries"]["IngressAclEntry"];
for (auto allNetworkAclsNodeIngressAclEntriesIngressAclEntry : allIngressAclEntriesNode)
{
NetworkAcl::IngressAclEntry ingressAclEntriesObject;
if(!value["NetworkAclEntryId"].isNull())
ingressAclEntriesObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
if(!value["Policy"].isNull())
ingressAclEntriesObject.policy = value["Policy"].asString();
if(!value["Protocol"].isNull())
ingressAclEntriesObject.protocol = value["Protocol"].asString();
if(!value["SourceCidrIp"].isNull())
ingressAclEntriesObject.sourceCidrIp = value["SourceCidrIp"].asString();
if(!value["Port"].isNull())
ingressAclEntriesObject.port = value["Port"].asString();
if(!value["EntryType"].isNull())
ingressAclEntriesObject.entryType = value["EntryType"].asString();
if(!value["NetworkAclEntryName"].isNull())
ingressAclEntriesObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
if(!value["Description"].isNull())
ingressAclEntriesObject.description = value["Description"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].isNull())
ingressAclEntriesObject.networkAclEntryId = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryId"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Policy"].isNull())
ingressAclEntriesObject.policy = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Policy"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Protocol"].isNull())
ingressAclEntriesObject.protocol = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Protocol"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].isNull())
ingressAclEntriesObject.sourceCidrIp = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["SourceCidrIp"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Port"].isNull())
ingressAclEntriesObject.port = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Port"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["EntryType"].isNull())
ingressAclEntriesObject.entryType = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["EntryType"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].isNull())
ingressAclEntriesObject.networkAclEntryName = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["NetworkAclEntryName"].asString();
if(!allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Description"].isNull())
ingressAclEntriesObject.description = allNetworkAclsNodeIngressAclEntriesIngressAclEntry["Description"].asString();
networkAclsObject.ingressAclEntries.push_back(ingressAclEntriesObject);
}
auto allEgressAclEntries = value["EgressAclEntries"]["EgressAclEntry"];
for (auto value : allEgressAclEntries)
auto allEgressAclEntriesNode = allNetworkAclsNode["EgressAclEntries"]["EgressAclEntry"];
for (auto allNetworkAclsNodeEgressAclEntriesEgressAclEntry : allEgressAclEntriesNode)
{
NetworkAcl::EgressAclEntry egressAclEntriesObject;
if(!value["NetworkAclEntryId"].isNull())
egressAclEntriesObject.networkAclEntryId = value["NetworkAclEntryId"].asString();
if(!value["Policy"].isNull())
egressAclEntriesObject.policy = value["Policy"].asString();
if(!value["Protocol"].isNull())
egressAclEntriesObject.protocol = value["Protocol"].asString();
if(!value["DestinationCidrIp"].isNull())
egressAclEntriesObject.destinationCidrIp = value["DestinationCidrIp"].asString();
if(!value["Port"].isNull())
egressAclEntriesObject.port = value["Port"].asString();
if(!value["EntryType"].isNull())
egressAclEntriesObject.entryType = value["EntryType"].asString();
if(!value["Description"].isNull())
egressAclEntriesObject.description = value["Description"].asString();
if(!value["NetworkAclEntryName"].isNull())
egressAclEntriesObject.networkAclEntryName = value["NetworkAclEntryName"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].isNull())
egressAclEntriesObject.networkAclEntryId = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryId"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Policy"].isNull())
egressAclEntriesObject.policy = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Policy"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Protocol"].isNull())
egressAclEntriesObject.protocol = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Protocol"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].isNull())
egressAclEntriesObject.destinationCidrIp = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["DestinationCidrIp"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Port"].isNull())
egressAclEntriesObject.port = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Port"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["EntryType"].isNull())
egressAclEntriesObject.entryType = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["EntryType"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Description"].isNull())
egressAclEntriesObject.description = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["Description"].asString();
if(!allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].isNull())
egressAclEntriesObject.networkAclEntryName = allNetworkAclsNodeEgressAclEntriesEgressAclEntry["NetworkAclEntryName"].asString();
networkAclsObject.egressAclEntries.push_back(egressAclEntriesObject);
}
auto allResources = value["Resources"]["Resource"];
for (auto value : allResources)
auto allResourcesNode = allNetworkAclsNode["Resources"]["Resource"];
for (auto allNetworkAclsNodeResourcesResource : allResourcesNode)
{
NetworkAcl::Resource resourcesObject;
if(!value["ResourceId"].isNull())
resourcesObject.resourceId = value["ResourceId"].asString();
if(!value["ResourceType"].isNull())
resourcesObject.resourceType = value["ResourceType"].asString();
if(!value["Status"].isNull())
resourcesObject.status = value["Status"].asString();
if(!allNetworkAclsNodeResourcesResource["ResourceId"].isNull())
resourcesObject.resourceId = allNetworkAclsNodeResourcesResource["ResourceId"].asString();
if(!allNetworkAclsNodeResourcesResource["ResourceType"].isNull())
resourcesObject.resourceType = allNetworkAclsNodeResourcesResource["ResourceType"].asString();
if(!allNetworkAclsNodeResourcesResource["Status"].isNull())
resourcesObject.status = allNetworkAclsNodeResourcesResource["Status"].asString();
networkAclsObject.resources.push_back(resourcesObject);
}
networkAcls_.push_back(networkAclsObject);

View File

@@ -60,20 +60,20 @@ void DescribePhysicalConnectionLOAResult::parse(const std::string &payload)
physicalConnectionLOAType_.loaUrl = physicalConnectionLOATypeNode["LoaUrl"].asString();
if(!physicalConnectionLOATypeNode["SI"].isNull())
physicalConnectionLOAType_.sI = physicalConnectionLOATypeNode["SI"].asString();
auto allPMInfo = value["PMInfo"]["PMInfoItem"];
for (auto value : allPMInfo)
auto allPMInfoNode = physicalConnectionLOATypeNode["PMInfo"]["PMInfoItem"];
for (auto physicalConnectionLOATypeNodePMInfoPMInfoItem : allPMInfoNode)
{
PhysicalConnectionLOAType::PMInfoItem pMInfoItemObject;
if(!value["PMName"].isNull())
pMInfoItemObject.pMName = value["PMName"].asString();
if(!value["PMContactInfo"].isNull())
pMInfoItemObject.pMContactInfo = value["PMContactInfo"].asString();
if(!value["PMCertificateType"].isNull())
pMInfoItemObject.pMCertificateType = value["PMCertificateType"].asString();
if(!value["PMCertificateNo"].isNull())
pMInfoItemObject.pMCertificateNo = value["PMCertificateNo"].asString();
if(!value["PMGender"].isNull())
pMInfoItemObject.pMGender = value["PMGender"].asString();
if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMName"].isNull())
pMInfoItemObject.pMName = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMName"].asString();
if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMContactInfo"].isNull())
pMInfoItemObject.pMContactInfo = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMContactInfo"].asString();
if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateType"].isNull())
pMInfoItemObject.pMCertificateType = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateType"].asString();
if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateNo"].isNull())
pMInfoItemObject.pMCertificateNo = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMCertificateNo"].asString();
if(!physicalConnectionLOATypeNodePMInfoPMInfoItem["PMGender"].isNull())
pMInfoItemObject.pMGender = physicalConnectionLOATypeNodePMInfoPMInfoItem["PMGender"].asString();
physicalConnectionLOAType_.pMInfo.push_back(pMInfoItemObject);
}

View File

@@ -39,62 +39,62 @@ void DescribePhysicalConnectionsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPhysicalConnectionSet = value["PhysicalConnectionSet"]["PhysicalConnectionType"];
for (auto value : allPhysicalConnectionSet)
auto allPhysicalConnectionSetNode = value["PhysicalConnectionSet"]["PhysicalConnectionType"];
for (auto valuePhysicalConnectionSetPhysicalConnectionType : allPhysicalConnectionSetNode)
{
PhysicalConnectionType physicalConnectionSetObject;
if(!value["PhysicalConnectionId"].isNull())
physicalConnectionSetObject.physicalConnectionId = value["PhysicalConnectionId"].asString();
if(!value["AccessPointId"].isNull())
physicalConnectionSetObject.accessPointId = value["AccessPointId"].asString();
if(!value["Type"].isNull())
physicalConnectionSetObject.type = value["Type"].asString();
if(!value["Status"].isNull())
physicalConnectionSetObject.status = value["Status"].asString();
if(!value["BusinessStatus"].isNull())
physicalConnectionSetObject.businessStatus = value["BusinessStatus"].asString();
if(!value["CreationTime"].isNull())
physicalConnectionSetObject.creationTime = value["CreationTime"].asString();
if(!value["EnabledTime"].isNull())
physicalConnectionSetObject.enabledTime = value["EnabledTime"].asString();
if(!value["LineOperator"].isNull())
physicalConnectionSetObject.lineOperator = value["LineOperator"].asString();
if(!value["Spec"].isNull())
physicalConnectionSetObject.spec = value["Spec"].asString();
if(!value["PeerLocation"].isNull())
physicalConnectionSetObject.peerLocation = value["PeerLocation"].asString();
if(!value["PortType"].isNull())
physicalConnectionSetObject.portType = value["PortType"].asString();
if(!value["RedundantPhysicalConnectionId"].isNull())
physicalConnectionSetObject.redundantPhysicalConnectionId = value["RedundantPhysicalConnectionId"].asString();
if(!value["Name"].isNull())
physicalConnectionSetObject.name = value["Name"].asString();
if(!value["Description"].isNull())
physicalConnectionSetObject.description = value["Description"].asString();
if(!value["AdLocation"].isNull())
physicalConnectionSetObject.adLocation = value["AdLocation"].asString();
if(!value["PortNumber"].isNull())
physicalConnectionSetObject.portNumber = value["PortNumber"].asString();
if(!value["CircuitCode"].isNull())
physicalConnectionSetObject.circuitCode = value["CircuitCode"].asString();
if(!value["Bandwidth"].isNull())
physicalConnectionSetObject.bandwidth = std::stol(value["Bandwidth"].asString());
if(!value["LoaStatus"].isNull())
physicalConnectionSetObject.loaStatus = value["LoaStatus"].asString();
if(!value["Spec"].isNull())
physicalConnectionSetObject.spec1 = value["Spec"].asString();
if(!value["HasReservationData"].isNull())
physicalConnectionSetObject.hasReservationData = value["HasReservationData"].asString();
if(!value["ReservationInternetChargeType"].isNull())
physicalConnectionSetObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
if(!value["ReservationActiveTime"].isNull())
physicalConnectionSetObject.reservationActiveTime = value["ReservationActiveTime"].asString();
if(!value["ReservationOrderType"].isNull())
physicalConnectionSetObject.reservationOrderType = value["ReservationOrderType"].asString();
if(!value["EndTime"].isNull())
physicalConnectionSetObject.endTime = value["EndTime"].asString();
if(!value["ChargeType"].isNull())
physicalConnectionSetObject.chargeType = value["ChargeType"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].isNull())
physicalConnectionSetObject.physicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["PhysicalConnectionId"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].isNull())
physicalConnectionSetObject.accessPointId = valuePhysicalConnectionSetPhysicalConnectionType["AccessPointId"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Type"].isNull())
physicalConnectionSetObject.type = valuePhysicalConnectionSetPhysicalConnectionType["Type"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Status"].isNull())
physicalConnectionSetObject.status = valuePhysicalConnectionSetPhysicalConnectionType["Status"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].isNull())
physicalConnectionSetObject.businessStatus = valuePhysicalConnectionSetPhysicalConnectionType["BusinessStatus"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].isNull())
physicalConnectionSetObject.creationTime = valuePhysicalConnectionSetPhysicalConnectionType["CreationTime"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].isNull())
physicalConnectionSetObject.enabledTime = valuePhysicalConnectionSetPhysicalConnectionType["EnabledTime"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].isNull())
physicalConnectionSetObject.lineOperator = valuePhysicalConnectionSetPhysicalConnectionType["LineOperator"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull())
physicalConnectionSetObject.spec = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].isNull())
physicalConnectionSetObject.peerLocation = valuePhysicalConnectionSetPhysicalConnectionType["PeerLocation"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["PortType"].isNull())
physicalConnectionSetObject.portType = valuePhysicalConnectionSetPhysicalConnectionType["PortType"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].isNull())
physicalConnectionSetObject.redundantPhysicalConnectionId = valuePhysicalConnectionSetPhysicalConnectionType["RedundantPhysicalConnectionId"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Name"].isNull())
physicalConnectionSetObject.name = valuePhysicalConnectionSetPhysicalConnectionType["Name"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Description"].isNull())
physicalConnectionSetObject.description = valuePhysicalConnectionSetPhysicalConnectionType["Description"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["AdLocation"].isNull())
physicalConnectionSetObject.adLocation = valuePhysicalConnectionSetPhysicalConnectionType["AdLocation"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].isNull())
physicalConnectionSetObject.portNumber = valuePhysicalConnectionSetPhysicalConnectionType["PortNumber"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].isNull())
physicalConnectionSetObject.circuitCode = valuePhysicalConnectionSetPhysicalConnectionType["CircuitCode"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].isNull())
physicalConnectionSetObject.bandwidth = std::stol(valuePhysicalConnectionSetPhysicalConnectionType["Bandwidth"].asString());
if(!valuePhysicalConnectionSetPhysicalConnectionType["LoaStatus"].isNull())
physicalConnectionSetObject.loaStatus = valuePhysicalConnectionSetPhysicalConnectionType["LoaStatus"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["Spec"].isNull())
physicalConnectionSetObject.spec1 = valuePhysicalConnectionSetPhysicalConnectionType["Spec"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["HasReservationData"].isNull())
physicalConnectionSetObject.hasReservationData = valuePhysicalConnectionSetPhysicalConnectionType["HasReservationData"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationInternetChargeType"].isNull())
physicalConnectionSetObject.reservationInternetChargeType = valuePhysicalConnectionSetPhysicalConnectionType["ReservationInternetChargeType"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationActiveTime"].isNull())
physicalConnectionSetObject.reservationActiveTime = valuePhysicalConnectionSetPhysicalConnectionType["ReservationActiveTime"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["ReservationOrderType"].isNull())
physicalConnectionSetObject.reservationOrderType = valuePhysicalConnectionSetPhysicalConnectionType["ReservationOrderType"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["EndTime"].isNull())
physicalConnectionSetObject.endTime = valuePhysicalConnectionSetPhysicalConnectionType["EndTime"].asString();
if(!valuePhysicalConnectionSetPhysicalConnectionType["ChargeType"].isNull())
physicalConnectionSetObject.chargeType = valuePhysicalConnectionSetPhysicalConnectionType["ChargeType"].asString();
physicalConnectionSet_.push_back(physicalConnectionSetObject);
}
if(!value["PageNumber"].isNull())

View File

@@ -39,16 +39,16 @@ void DescribeRegionsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegions = value["Regions"]["Region"];
for (auto value : allRegions)
auto allRegionsNode = value["Regions"]["Region"];
for (auto valueRegionsRegion : allRegionsNode)
{
Region regionsObject;
if(!value["RegionId"].isNull())
regionsObject.regionId = value["RegionId"].asString();
if(!value["LocalName"].isNull())
regionsObject.localName = value["LocalName"].asString();
if(!value["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = value["RegionEndpoint"].asString();
if(!valueRegionsRegion["RegionId"].isNull())
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
if(!valueRegionsRegion["LocalName"].isNull())
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
if(!valueRegionsRegion["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
regions_.push_back(regionsObject);
}

View File

@@ -39,38 +39,38 @@ void DescribeRouteEntryListResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRouteEntrys = value["RouteEntrys"]["RouteEntry"];
for (auto value : allRouteEntrys)
auto allRouteEntrysNode = value["RouteEntrys"]["RouteEntry"];
for (auto valueRouteEntrysRouteEntry : allRouteEntrysNode)
{
RouteEntry routeEntrysObject;
if(!value["RouteTableId"].isNull())
routeEntrysObject.routeTableId = value["RouteTableId"].asString();
if(!value["DestinationCidrBlock"].isNull())
routeEntrysObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
if(!value["Type"].isNull())
routeEntrysObject.type = value["Type"].asString();
if(!value["RouteEntryId"].isNull())
routeEntrysObject.routeEntryId = value["RouteEntryId"].asString();
if(!value["RouteEntryName"].isNull())
routeEntrysObject.routeEntryName = value["RouteEntryName"].asString();
if(!value["Status"].isNull())
routeEntrysObject.status = value["Status"].asString();
if(!value["IpVersion"].isNull())
routeEntrysObject.ipVersion = value["IpVersion"].asString();
auto allNextHops = value["NextHops"]["NextHop"];
for (auto value : allNextHops)
if(!valueRouteEntrysRouteEntry["RouteTableId"].isNull())
routeEntrysObject.routeTableId = valueRouteEntrysRouteEntry["RouteTableId"].asString();
if(!valueRouteEntrysRouteEntry["DestinationCidrBlock"].isNull())
routeEntrysObject.destinationCidrBlock = valueRouteEntrysRouteEntry["DestinationCidrBlock"].asString();
if(!valueRouteEntrysRouteEntry["Type"].isNull())
routeEntrysObject.type = valueRouteEntrysRouteEntry["Type"].asString();
if(!valueRouteEntrysRouteEntry["RouteEntryId"].isNull())
routeEntrysObject.routeEntryId = valueRouteEntrysRouteEntry["RouteEntryId"].asString();
if(!valueRouteEntrysRouteEntry["RouteEntryName"].isNull())
routeEntrysObject.routeEntryName = valueRouteEntrysRouteEntry["RouteEntryName"].asString();
if(!valueRouteEntrysRouteEntry["Status"].isNull())
routeEntrysObject.status = valueRouteEntrysRouteEntry["Status"].asString();
if(!valueRouteEntrysRouteEntry["IpVersion"].isNull())
routeEntrysObject.ipVersion = valueRouteEntrysRouteEntry["IpVersion"].asString();
auto allNextHopsNode = allRouteEntrysNode["NextHops"]["NextHop"];
for (auto allRouteEntrysNodeNextHopsNextHop : allNextHopsNode)
{
RouteEntry::NextHop nextHopsObject;
if(!value["NextHopType"].isNull())
nextHopsObject.nextHopType = value["NextHopType"].asString();
if(!value["NextHopId"].isNull())
nextHopsObject.nextHopId = value["NextHopId"].asString();
if(!value["Enabled"].isNull())
nextHopsObject.enabled = std::stoi(value["Enabled"].asString());
if(!value["Weight"].isNull())
nextHopsObject.weight = std::stoi(value["Weight"].asString());
if(!value["NextHopRegionId"].isNull())
nextHopsObject.nextHopRegionId = value["NextHopRegionId"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopType"].isNull())
nextHopsObject.nextHopType = allRouteEntrysNodeNextHopsNextHop["NextHopType"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopId"].isNull())
nextHopsObject.nextHopId = allRouteEntrysNodeNextHopsNextHop["NextHopId"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["Enabled"].isNull())
nextHopsObject.enabled = std::stoi(allRouteEntrysNodeNextHopsNextHop["Enabled"].asString());
if(!allRouteEntrysNodeNextHopsNextHop["Weight"].isNull())
nextHopsObject.weight = std::stoi(allRouteEntrysNodeNextHopsNextHop["Weight"].asString());
if(!allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].isNull())
nextHopsObject.nextHopRegionId = allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].asString();
auto nextHopRelatedInfoNode = value["NextHopRelatedInfo"];
if(!nextHopRelatedInfoNode["InstanceType"].isNull())
nextHopsObject.nextHopRelatedInfo.instanceType = nextHopRelatedInfoNode["InstanceType"].asString();

View File

@@ -39,38 +39,38 @@ void DescribeRouteTableListResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRouterTableList = value["RouterTableList"]["RouterTableListType"];
for (auto value : allRouterTableList)
auto allRouterTableListNode = value["RouterTableList"]["RouterTableListType"];
for (auto valueRouterTableListRouterTableListType : allRouterTableListNode)
{
RouterTableListType routerTableListObject;
if(!value["VpcId"].isNull())
routerTableListObject.vpcId = value["VpcId"].asString();
if(!value["RouterType"].isNull())
routerTableListObject.routerType = value["RouterType"].asString();
if(!value["RouterId"].isNull())
routerTableListObject.routerId = value["RouterId"].asString();
if(!value["RouteTableId"].isNull())
routerTableListObject.routeTableId = value["RouteTableId"].asString();
if(!value["RouteTableName"].isNull())
routerTableListObject.routeTableName = value["RouteTableName"].asString();
if(!value["RouteTableType"].isNull())
routerTableListObject.routeTableType = value["RouteTableType"].asString();
if(!value["Description"].isNull())
routerTableListObject.description = value["Description"].asString();
if(!value["ResourceGroupId"].isNull())
routerTableListObject.resourceGroupId = value["ResourceGroupId"].asString();
if(!value["CreationTime"].isNull())
routerTableListObject.creationTime = value["CreationTime"].asString();
if(!value["Status"].isNull())
routerTableListObject.status = value["Status"].asString();
auto allTags = value["Tags"]["Tag"];
for (auto value : allTags)
if(!valueRouterTableListRouterTableListType["VpcId"].isNull())
routerTableListObject.vpcId = valueRouterTableListRouterTableListType["VpcId"].asString();
if(!valueRouterTableListRouterTableListType["RouterType"].isNull())
routerTableListObject.routerType = valueRouterTableListRouterTableListType["RouterType"].asString();
if(!valueRouterTableListRouterTableListType["RouterId"].isNull())
routerTableListObject.routerId = valueRouterTableListRouterTableListType["RouterId"].asString();
if(!valueRouterTableListRouterTableListType["RouteTableId"].isNull())
routerTableListObject.routeTableId = valueRouterTableListRouterTableListType["RouteTableId"].asString();
if(!valueRouterTableListRouterTableListType["RouteTableName"].isNull())
routerTableListObject.routeTableName = valueRouterTableListRouterTableListType["RouteTableName"].asString();
if(!valueRouterTableListRouterTableListType["RouteTableType"].isNull())
routerTableListObject.routeTableType = valueRouterTableListRouterTableListType["RouteTableType"].asString();
if(!valueRouterTableListRouterTableListType["Description"].isNull())
routerTableListObject.description = valueRouterTableListRouterTableListType["Description"].asString();
if(!valueRouterTableListRouterTableListType["ResourceGroupId"].isNull())
routerTableListObject.resourceGroupId = valueRouterTableListRouterTableListType["ResourceGroupId"].asString();
if(!valueRouterTableListRouterTableListType["CreationTime"].isNull())
routerTableListObject.creationTime = valueRouterTableListRouterTableListType["CreationTime"].asString();
if(!valueRouterTableListRouterTableListType["Status"].isNull())
routerTableListObject.status = valueRouterTableListRouterTableListType["Status"].asString();
auto allTagsNode = allRouterTableListNode["Tags"]["Tag"];
for (auto allRouterTableListNodeTagsTag : allTagsNode)
{
RouterTableListType::Tag tagsObject;
if(!value["Key"].isNull())
tagsObject.key = value["Key"].asString();
if(!value["Value"].isNull())
tagsObject.value = value["Value"].asString();
if(!allRouterTableListNodeTagsTag["Key"].isNull())
tagsObject.key = allRouterTableListNodeTagsTag["Key"].asString();
if(!allRouterTableListNodeTagsTag["Value"].isNull())
tagsObject.value = allRouterTableListNodeTagsTag["Value"].asString();
routerTableListObject.tags.push_back(tagsObject);
}
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];

View File

@@ -39,72 +39,72 @@ void DescribeRouteTablesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRouteTables = value["RouteTables"]["RouteTable"];
for (auto value : allRouteTables)
auto allRouteTablesNode = value["RouteTables"]["RouteTable"];
for (auto valueRouteTablesRouteTable : allRouteTablesNode)
{
RouteTable routeTablesObject;
if(!value["VRouterId"].isNull())
routeTablesObject.vRouterId = value["VRouterId"].asString();
if(!value["RouteTableId"].isNull())
routeTablesObject.routeTableId = value["RouteTableId"].asString();
if(!value["RouteTableType"].isNull())
routeTablesObject.routeTableType = value["RouteTableType"].asString();
if(!value["CreationTime"].isNull())
routeTablesObject.creationTime = value["CreationTime"].asString();
if(!value["ResourceGroupId"].isNull())
routeTablesObject.resourceGroupId = value["ResourceGroupId"].asString();
if(!value["Status"].isNull())
routeTablesObject.status = value["Status"].asString();
auto allRouteEntrys = value["RouteEntrys"]["RouteEntry"];
for (auto value : allRouteEntrys)
if(!valueRouteTablesRouteTable["VRouterId"].isNull())
routeTablesObject.vRouterId = valueRouteTablesRouteTable["VRouterId"].asString();
if(!valueRouteTablesRouteTable["RouteTableId"].isNull())
routeTablesObject.routeTableId = valueRouteTablesRouteTable["RouteTableId"].asString();
if(!valueRouteTablesRouteTable["RouteTableType"].isNull())
routeTablesObject.routeTableType = valueRouteTablesRouteTable["RouteTableType"].asString();
if(!valueRouteTablesRouteTable["CreationTime"].isNull())
routeTablesObject.creationTime = valueRouteTablesRouteTable["CreationTime"].asString();
if(!valueRouteTablesRouteTable["ResourceGroupId"].isNull())
routeTablesObject.resourceGroupId = valueRouteTablesRouteTable["ResourceGroupId"].asString();
if(!valueRouteTablesRouteTable["Status"].isNull())
routeTablesObject.status = valueRouteTablesRouteTable["Status"].asString();
auto allRouteEntrysNode = allRouteTablesNode["RouteEntrys"]["RouteEntry"];
for (auto allRouteTablesNodeRouteEntrysRouteEntry : allRouteEntrysNode)
{
RouteTable::RouteEntry routeEntrysObject;
if(!value["RouteTableId"].isNull())
routeEntrysObject.routeTableId = value["RouteTableId"].asString();
if(!value["DestinationCidrBlock"].isNull())
routeEntrysObject.destinationCidrBlock = value["DestinationCidrBlock"].asString();
if(!value["Type"].isNull())
routeEntrysObject.type = value["Type"].asString();
if(!value["Status"].isNull())
routeEntrysObject.status = value["Status"].asString();
if(!value["InstanceId"].isNull())
routeEntrysObject.instanceId = value["InstanceId"].asString();
if(!value["NextHopType"].isNull())
routeEntrysObject.nextHopType = value["NextHopType"].asString();
if(!value["RouteEntryName"].isNull())
routeEntrysObject.routeEntryName = value["RouteEntryName"].asString();
if(!value["RouteEntryId"].isNull())
routeEntrysObject.routeEntryId = value["RouteEntryId"].asString();
if(!value["NextHopRegionId"].isNull())
routeEntrysObject.nextHopRegionId = value["NextHopRegionId"].asString();
if(!value["NextHopOppsiteType"].isNull())
routeEntrysObject.nextHopOppsiteType = value["NextHopOppsiteType"].asString();
if(!value["NextHopOppsiteInstanceId"].isNull())
routeEntrysObject.nextHopOppsiteInstanceId = value["NextHopOppsiteInstanceId"].asString();
if(!value["NextHopOppsiteRegionId"].isNull())
routeEntrysObject.nextHopOppsiteRegionId = value["NextHopOppsiteRegionId"].asString();
if(!value["PrivateIpAddress"].isNull())
routeEntrysObject.privateIpAddress = value["PrivateIpAddress"].asString();
auto allNextHops = value["NextHops"]["NextHop"];
for (auto value : allNextHops)
if(!allRouteTablesNodeRouteEntrysRouteEntry["RouteTableId"].isNull())
routeEntrysObject.routeTableId = allRouteTablesNodeRouteEntrysRouteEntry["RouteTableId"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["DestinationCidrBlock"].isNull())
routeEntrysObject.destinationCidrBlock = allRouteTablesNodeRouteEntrysRouteEntry["DestinationCidrBlock"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["Type"].isNull())
routeEntrysObject.type = allRouteTablesNodeRouteEntrysRouteEntry["Type"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["Status"].isNull())
routeEntrysObject.status = allRouteTablesNodeRouteEntrysRouteEntry["Status"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["InstanceId"].isNull())
routeEntrysObject.instanceId = allRouteTablesNodeRouteEntrysRouteEntry["InstanceId"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopType"].isNull())
routeEntrysObject.nextHopType = allRouteTablesNodeRouteEntrysRouteEntry["NextHopType"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryName"].isNull())
routeEntrysObject.routeEntryName = allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryName"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryId"].isNull())
routeEntrysObject.routeEntryId = allRouteTablesNodeRouteEntrysRouteEntry["RouteEntryId"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopRegionId"].isNull())
routeEntrysObject.nextHopRegionId = allRouteTablesNodeRouteEntrysRouteEntry["NextHopRegionId"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteType"].isNull())
routeEntrysObject.nextHopOppsiteType = allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteType"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].isNull())
routeEntrysObject.nextHopOppsiteInstanceId = allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteInstanceId"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteRegionId"].isNull())
routeEntrysObject.nextHopOppsiteRegionId = allRouteTablesNodeRouteEntrysRouteEntry["NextHopOppsiteRegionId"].asString();
if(!allRouteTablesNodeRouteEntrysRouteEntry["PrivateIpAddress"].isNull())
routeEntrysObject.privateIpAddress = allRouteTablesNodeRouteEntrysRouteEntry["PrivateIpAddress"].asString();
auto allNextHopsNode = allRouteEntrysNode["NextHops"]["NextHop"];
for (auto allRouteEntrysNodeNextHopsNextHop : allNextHopsNode)
{
RouteTable::RouteEntry::NextHop nextHopsObject;
if(!value["NextHopType"].isNull())
nextHopsObject.nextHopType = value["NextHopType"].asString();
if(!value["NextHopId"].isNull())
nextHopsObject.nextHopId = value["NextHopId"].asString();
if(!value["Enabled"].isNull())
nextHopsObject.enabled = std::stoi(value["Enabled"].asString());
if(!value["Weight"].isNull())
nextHopsObject.weight = std::stoi(value["Weight"].asString());
if(!value["NextHopRegionId"].isNull())
nextHopsObject.nextHopRegionId = value["NextHopRegionId"].asString();
if(!value["NextHopOppsiteType"].isNull())
nextHopsObject.nextHopOppsiteType = value["NextHopOppsiteType"].asString();
if(!value["NextHopOppsiteInstanceId"].isNull())
nextHopsObject.nextHopOppsiteInstanceId = value["NextHopOppsiteInstanceId"].asString();
if(!value["NextHopOppsiteRegionId"].isNull())
nextHopsObject.nextHopOppsiteRegionId = value["NextHopOppsiteRegionId"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopType"].isNull())
nextHopsObject.nextHopType = allRouteEntrysNodeNextHopsNextHop["NextHopType"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopId"].isNull())
nextHopsObject.nextHopId = allRouteEntrysNodeNextHopsNextHop["NextHopId"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["Enabled"].isNull())
nextHopsObject.enabled = std::stoi(allRouteEntrysNodeNextHopsNextHop["Enabled"].asString());
if(!allRouteEntrysNodeNextHopsNextHop["Weight"].isNull())
nextHopsObject.weight = std::stoi(allRouteEntrysNodeNextHopsNextHop["Weight"].asString());
if(!allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].isNull())
nextHopsObject.nextHopRegionId = allRouteEntrysNodeNextHopsNextHop["NextHopRegionId"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteType"].isNull())
nextHopsObject.nextHopOppsiteType = allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteType"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteInstanceId"].isNull())
nextHopsObject.nextHopOppsiteInstanceId = allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteInstanceId"].asString();
if(!allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteRegionId"].isNull())
nextHopsObject.nextHopOppsiteRegionId = allRouteEntrysNodeNextHopsNextHop["NextHopOppsiteRegionId"].asString();
routeEntrysObject.nextHops.push_back(nextHopsObject);
}
routeTablesObject.routeEntrys.push_back(routeEntrysObject);

View File

@@ -39,84 +39,84 @@ void DescribeRouterInterfacesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRouterInterfaceSet = value["RouterInterfaceSet"]["RouterInterfaceType"];
for (auto value : allRouterInterfaceSet)
auto allRouterInterfaceSetNode = value["RouterInterfaceSet"]["RouterInterfaceType"];
for (auto valueRouterInterfaceSetRouterInterfaceType : allRouterInterfaceSetNode)
{
RouterInterfaceType routerInterfaceSetObject;
if(!value["RouterInterfaceId"].isNull())
routerInterfaceSetObject.routerInterfaceId = value["RouterInterfaceId"].asString();
if(!value["OppositeRegionId"].isNull())
routerInterfaceSetObject.oppositeRegionId = value["OppositeRegionId"].asString();
if(!value["Role"].isNull())
routerInterfaceSetObject.role = value["Role"].asString();
if(!value["Spec"].isNull())
routerInterfaceSetObject.spec = value["Spec"].asString();
if(!value["Name"].isNull())
routerInterfaceSetObject.name = value["Name"].asString();
if(!value["Description"].isNull())
routerInterfaceSetObject.description = value["Description"].asString();
if(!value["RouterId"].isNull())
routerInterfaceSetObject.routerId = value["RouterId"].asString();
if(!value["RouterType"].isNull())
routerInterfaceSetObject.routerType = value["RouterType"].asString();
if(!value["CreationTime"].isNull())
routerInterfaceSetObject.creationTime = value["CreationTime"].asString();
if(!value["EndTime"].isNull())
routerInterfaceSetObject.endTime = value["EndTime"].asString();
if(!value["ChargeType"].isNull())
routerInterfaceSetObject.chargeType = value["ChargeType"].asString();
if(!value["Status"].isNull())
routerInterfaceSetObject.status = value["Status"].asString();
if(!value["BusinessStatus"].isNull())
routerInterfaceSetObject.businessStatus = value["BusinessStatus"].asString();
if(!value["ConnectedTime"].isNull())
routerInterfaceSetObject.connectedTime = value["ConnectedTime"].asString();
if(!value["OppositeInterfaceId"].isNull())
routerInterfaceSetObject.oppositeInterfaceId = value["OppositeInterfaceId"].asString();
if(!value["OppositeInterfaceSpec"].isNull())
routerInterfaceSetObject.oppositeInterfaceSpec = value["OppositeInterfaceSpec"].asString();
if(!value["OppositeInterfaceStatus"].isNull())
routerInterfaceSetObject.oppositeInterfaceStatus = value["OppositeInterfaceStatus"].asString();
if(!value["OppositeInterfaceBusinessStatus"].isNull())
routerInterfaceSetObject.oppositeInterfaceBusinessStatus = value["OppositeInterfaceBusinessStatus"].asString();
if(!value["OppositeRouterId"].isNull())
routerInterfaceSetObject.oppositeRouterId = value["OppositeRouterId"].asString();
if(!value["OppositeRouterType"].isNull())
routerInterfaceSetObject.oppositeRouterType = value["OppositeRouterType"].asString();
if(!value["OppositeInterfaceOwnerId"].isNull())
routerInterfaceSetObject.oppositeInterfaceOwnerId = value["OppositeInterfaceOwnerId"].asString();
if(!value["AccessPointId"].isNull())
routerInterfaceSetObject.accessPointId = value["AccessPointId"].asString();
if(!value["OppositeAccessPointId"].isNull())
routerInterfaceSetObject.oppositeAccessPointId = value["OppositeAccessPointId"].asString();
if(!value["HealthCheckSourceIp"].isNull())
routerInterfaceSetObject.healthCheckSourceIp = value["HealthCheckSourceIp"].asString();
if(!value["HealthCheckTargetIp"].isNull())
routerInterfaceSetObject.healthCheckTargetIp = value["HealthCheckTargetIp"].asString();
if(!value["OppositeVpcInstanceId"].isNull())
routerInterfaceSetObject.oppositeVpcInstanceId = value["OppositeVpcInstanceId"].asString();
if(!value["Bandwidth"].isNull())
routerInterfaceSetObject.bandwidth = std::stoi(value["Bandwidth"].asString());
if(!value["VpcInstanceId"].isNull())
routerInterfaceSetObject.vpcInstanceId = value["VpcInstanceId"].asString();
if(!value["OppositeBandwidth"].isNull())
routerInterfaceSetObject.oppositeBandwidth = std::stoi(value["OppositeBandwidth"].asString());
if(!value["HasReservationData"].isNull())
routerInterfaceSetObject.hasReservationData = value["HasReservationData"].asString();
if(!value["ReservationBandwidth"].isNull())
routerInterfaceSetObject.reservationBandwidth = value["ReservationBandwidth"].asString();
if(!value["ReservationInternetChargeType"].isNull())
routerInterfaceSetObject.reservationInternetChargeType = value["ReservationInternetChargeType"].asString();
if(!value["ReservationActiveTime"].isNull())
routerInterfaceSetObject.reservationActiveTime = value["ReservationActiveTime"].asString();
if(!value["ReservationOrderType"].isNull())
routerInterfaceSetObject.reservationOrderType = value["ReservationOrderType"].asString();
if(!value["CrossBorder"].isNull())
routerInterfaceSetObject.crossBorder = value["CrossBorder"].asString() == "true";
if(!value["HcThreshold"].isNull())
routerInterfaceSetObject.hcThreshold = std::stoi(value["HcThreshold"].asString());
if(!value["HcRate"].isNull())
routerInterfaceSetObject.hcRate = std::stoi(value["HcRate"].asString());
if(!valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].isNull())
routerInterfaceSetObject.routerInterfaceId = valueRouterInterfaceSetRouterInterfaceType["RouterInterfaceId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].isNull())
routerInterfaceSetObject.oppositeRegionId = valueRouterInterfaceSetRouterInterfaceType["OppositeRegionId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["Role"].isNull())
routerInterfaceSetObject.role = valueRouterInterfaceSetRouterInterfaceType["Role"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["Spec"].isNull())
routerInterfaceSetObject.spec = valueRouterInterfaceSetRouterInterfaceType["Spec"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["Name"].isNull())
routerInterfaceSetObject.name = valueRouterInterfaceSetRouterInterfaceType["Name"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["Description"].isNull())
routerInterfaceSetObject.description = valueRouterInterfaceSetRouterInterfaceType["Description"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["RouterId"].isNull())
routerInterfaceSetObject.routerId = valueRouterInterfaceSetRouterInterfaceType["RouterId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["RouterType"].isNull())
routerInterfaceSetObject.routerType = valueRouterInterfaceSetRouterInterfaceType["RouterType"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["CreationTime"].isNull())
routerInterfaceSetObject.creationTime = valueRouterInterfaceSetRouterInterfaceType["CreationTime"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["EndTime"].isNull())
routerInterfaceSetObject.endTime = valueRouterInterfaceSetRouterInterfaceType["EndTime"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["ChargeType"].isNull())
routerInterfaceSetObject.chargeType = valueRouterInterfaceSetRouterInterfaceType["ChargeType"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["Status"].isNull())
routerInterfaceSetObject.status = valueRouterInterfaceSetRouterInterfaceType["Status"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].isNull())
routerInterfaceSetObject.businessStatus = valueRouterInterfaceSetRouterInterfaceType["BusinessStatus"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].isNull())
routerInterfaceSetObject.connectedTime = valueRouterInterfaceSetRouterInterfaceType["ConnectedTime"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].isNull())
routerInterfaceSetObject.oppositeInterfaceId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].isNull())
routerInterfaceSetObject.oppositeInterfaceSpec = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceSpec"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].isNull())
routerInterfaceSetObject.oppositeInterfaceStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceStatus"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].isNull())
routerInterfaceSetObject.oppositeInterfaceBusinessStatus = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceBusinessStatus"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].isNull())
routerInterfaceSetObject.oppositeRouterId = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].isNull())
routerInterfaceSetObject.oppositeRouterType = valueRouterInterfaceSetRouterInterfaceType["OppositeRouterType"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].isNull())
routerInterfaceSetObject.oppositeInterfaceOwnerId = valueRouterInterfaceSetRouterInterfaceType["OppositeInterfaceOwnerId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].isNull())
routerInterfaceSetObject.accessPointId = valueRouterInterfaceSetRouterInterfaceType["AccessPointId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].isNull())
routerInterfaceSetObject.oppositeAccessPointId = valueRouterInterfaceSetRouterInterfaceType["OppositeAccessPointId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].isNull())
routerInterfaceSetObject.healthCheckSourceIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckSourceIp"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].isNull())
routerInterfaceSetObject.healthCheckTargetIp = valueRouterInterfaceSetRouterInterfaceType["HealthCheckTargetIp"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeVpcInstanceId"].isNull())
routerInterfaceSetObject.oppositeVpcInstanceId = valueRouterInterfaceSetRouterInterfaceType["OppositeVpcInstanceId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["Bandwidth"].isNull())
routerInterfaceSetObject.bandwidth = std::stoi(valueRouterInterfaceSetRouterInterfaceType["Bandwidth"].asString());
if(!valueRouterInterfaceSetRouterInterfaceType["VpcInstanceId"].isNull())
routerInterfaceSetObject.vpcInstanceId = valueRouterInterfaceSetRouterInterfaceType["VpcInstanceId"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["OppositeBandwidth"].isNull())
routerInterfaceSetObject.oppositeBandwidth = std::stoi(valueRouterInterfaceSetRouterInterfaceType["OppositeBandwidth"].asString());
if(!valueRouterInterfaceSetRouterInterfaceType["HasReservationData"].isNull())
routerInterfaceSetObject.hasReservationData = valueRouterInterfaceSetRouterInterfaceType["HasReservationData"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["ReservationBandwidth"].isNull())
routerInterfaceSetObject.reservationBandwidth = valueRouterInterfaceSetRouterInterfaceType["ReservationBandwidth"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["ReservationInternetChargeType"].isNull())
routerInterfaceSetObject.reservationInternetChargeType = valueRouterInterfaceSetRouterInterfaceType["ReservationInternetChargeType"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["ReservationActiveTime"].isNull())
routerInterfaceSetObject.reservationActiveTime = valueRouterInterfaceSetRouterInterfaceType["ReservationActiveTime"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["ReservationOrderType"].isNull())
routerInterfaceSetObject.reservationOrderType = valueRouterInterfaceSetRouterInterfaceType["ReservationOrderType"].asString();
if(!valueRouterInterfaceSetRouterInterfaceType["CrossBorder"].isNull())
routerInterfaceSetObject.crossBorder = valueRouterInterfaceSetRouterInterfaceType["CrossBorder"].asString() == "true";
if(!valueRouterInterfaceSetRouterInterfaceType["HcThreshold"].isNull())
routerInterfaceSetObject.hcThreshold = std::stoi(valueRouterInterfaceSetRouterInterfaceType["HcThreshold"].asString());
if(!valueRouterInterfaceSetRouterInterfaceType["HcRate"].isNull())
routerInterfaceSetObject.hcRate = std::stoi(valueRouterInterfaceSetRouterInterfaceType["HcRate"].asString());
routerInterfaceSet_.push_back(routerInterfaceSetObject);
}
if(!value["PageNumber"].isNull())

View File

@@ -39,18 +39,18 @@ void DescribeServerRelatedGlobalAccelerationInstancesResult::parse(const std::st
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGlobalAccelerationInstances = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"];
for (auto value : allGlobalAccelerationInstances)
auto allGlobalAccelerationInstancesNode = value["GlobalAccelerationInstances"]["GlobalAccelerationInstance"];
for (auto valueGlobalAccelerationInstancesGlobalAccelerationInstance : allGlobalAccelerationInstancesNode)
{
GlobalAccelerationInstance globalAccelerationInstancesObject;
if(!value["RegionId"].isNull())
globalAccelerationInstancesObject.regionId = value["RegionId"].asString();
if(!value["GlobalAccelerationInstanceId"].isNull())
globalAccelerationInstancesObject.globalAccelerationInstanceId = value["GlobalAccelerationInstanceId"].asString();
if(!value["IpAddress"].isNull())
globalAccelerationInstancesObject.ipAddress = value["IpAddress"].asString();
if(!value["ServerIpAddress"].isNull())
globalAccelerationInstancesObject.serverIpAddress = value["ServerIpAddress"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].isNull())
globalAccelerationInstancesObject.regionId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["RegionId"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].isNull())
globalAccelerationInstancesObject.globalAccelerationInstanceId = valueGlobalAccelerationInstancesGlobalAccelerationInstance["GlobalAccelerationInstanceId"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].isNull())
globalAccelerationInstancesObject.ipAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["IpAddress"].asString();
if(!valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServerIpAddress"].isNull())
globalAccelerationInstancesObject.serverIpAddress = valueGlobalAccelerationInstancesGlobalAccelerationInstance["ServerIpAddress"].asString();
globalAccelerationInstances_.push_back(globalAccelerationInstancesObject);
}

View File

@@ -39,24 +39,24 @@ void DescribeSnatTableEntriesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSnatTableEntries = value["SnatTableEntries"]["SnatTableEntry"];
for (auto value : allSnatTableEntries)
auto allSnatTableEntriesNode = value["SnatTableEntries"]["SnatTableEntry"];
for (auto valueSnatTableEntriesSnatTableEntry : allSnatTableEntriesNode)
{
SnatTableEntry snatTableEntriesObject;
if(!value["SnatTableId"].isNull())
snatTableEntriesObject.snatTableId = value["SnatTableId"].asString();
if(!value["SnatEntryId"].isNull())
snatTableEntriesObject.snatEntryId = value["SnatEntryId"].asString();
if(!value["SourceVSwitchId"].isNull())
snatTableEntriesObject.sourceVSwitchId = value["SourceVSwitchId"].asString();
if(!value["SourceCIDR"].isNull())
snatTableEntriesObject.sourceCIDR = value["SourceCIDR"].asString();
if(!value["SnatIp"].isNull())
snatTableEntriesObject.snatIp = value["SnatIp"].asString();
if(!value["Status"].isNull())
snatTableEntriesObject.status = value["Status"].asString();
if(!value["SnatEntryName"].isNull())
snatTableEntriesObject.snatEntryName = value["SnatEntryName"].asString();
if(!valueSnatTableEntriesSnatTableEntry["SnatTableId"].isNull())
snatTableEntriesObject.snatTableId = valueSnatTableEntriesSnatTableEntry["SnatTableId"].asString();
if(!valueSnatTableEntriesSnatTableEntry["SnatEntryId"].isNull())
snatTableEntriesObject.snatEntryId = valueSnatTableEntriesSnatTableEntry["SnatEntryId"].asString();
if(!valueSnatTableEntriesSnatTableEntry["SourceVSwitchId"].isNull())
snatTableEntriesObject.sourceVSwitchId = valueSnatTableEntriesSnatTableEntry["SourceVSwitchId"].asString();
if(!valueSnatTableEntriesSnatTableEntry["SourceCIDR"].isNull())
snatTableEntriesObject.sourceCIDR = valueSnatTableEntriesSnatTableEntry["SourceCIDR"].asString();
if(!valueSnatTableEntriesSnatTableEntry["SnatIp"].isNull())
snatTableEntriesObject.snatIp = valueSnatTableEntriesSnatTableEntry["SnatIp"].asString();
if(!valueSnatTableEntriesSnatTableEntry["Status"].isNull())
snatTableEntriesObject.status = valueSnatTableEntriesSnatTableEntry["Status"].asString();
if(!valueSnatTableEntriesSnatTableEntry["SnatEntryName"].isNull())
snatTableEntriesObject.snatEntryName = valueSnatTableEntriesSnatTableEntry["SnatEntryName"].asString();
snatTableEntries_.push_back(snatTableEntriesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,24 +39,24 @@ void DescribeSslVpnClientCertsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSslVpnClientCertKeys = value["SslVpnClientCertKeys"]["SslVpnClientCertKey"];
for (auto value : allSslVpnClientCertKeys)
auto allSslVpnClientCertKeysNode = value["SslVpnClientCertKeys"]["SslVpnClientCertKey"];
for (auto valueSslVpnClientCertKeysSslVpnClientCertKey : allSslVpnClientCertKeysNode)
{
SslVpnClientCertKey sslVpnClientCertKeysObject;
if(!value["RegionId"].isNull())
sslVpnClientCertKeysObject.regionId = value["RegionId"].asString();
if(!value["SslVpnClientCertId"].isNull())
sslVpnClientCertKeysObject.sslVpnClientCertId = value["SslVpnClientCertId"].asString();
if(!value["Name"].isNull())
sslVpnClientCertKeysObject.name = value["Name"].asString();
if(!value["SslVpnServerId"].isNull())
sslVpnClientCertKeysObject.sslVpnServerId = value["SslVpnServerId"].asString();
if(!value["CreateTime"].isNull())
sslVpnClientCertKeysObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["EndTime"].isNull())
sslVpnClientCertKeysObject.endTime = std::stol(value["EndTime"].asString());
if(!value["Status"].isNull())
sslVpnClientCertKeysObject.status = value["Status"].asString();
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].isNull())
sslVpnClientCertKeysObject.regionId = valueSslVpnClientCertKeysSslVpnClientCertKey["RegionId"].asString();
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnClientCertId"].isNull())
sslVpnClientCertKeysObject.sslVpnClientCertId = valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnClientCertId"].asString();
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].isNull())
sslVpnClientCertKeysObject.name = valueSslVpnClientCertKeysSslVpnClientCertKey["Name"].asString();
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnServerId"].isNull())
sslVpnClientCertKeysObject.sslVpnServerId = valueSslVpnClientCertKeysSslVpnClientCertKey["SslVpnServerId"].asString();
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["CreateTime"].isNull())
sslVpnClientCertKeysObject.createTime = std::stol(valueSslVpnClientCertKeysSslVpnClientCertKey["CreateTime"].asString());
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["EndTime"].isNull())
sslVpnClientCertKeysObject.endTime = std::stol(valueSslVpnClientCertKeysSslVpnClientCertKey["EndTime"].asString());
if(!valueSslVpnClientCertKeysSslVpnClientCertKey["Status"].isNull())
sslVpnClientCertKeysObject.status = valueSslVpnClientCertKeysSslVpnClientCertKey["Status"].asString();
sslVpnClientCertKeys_.push_back(sslVpnClientCertKeysObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,38 +39,38 @@ void DescribeSslVpnServersResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSslVpnServers = value["SslVpnServers"]["SslVpnServer"];
for (auto value : allSslVpnServers)
auto allSslVpnServersNode = value["SslVpnServers"]["SslVpnServer"];
for (auto valueSslVpnServersSslVpnServer : allSslVpnServersNode)
{
SslVpnServer sslVpnServersObject;
if(!value["RegionId"].isNull())
sslVpnServersObject.regionId = value["RegionId"].asString();
if(!value["SslVpnServerId"].isNull())
sslVpnServersObject.sslVpnServerId = value["SslVpnServerId"].asString();
if(!value["VpnGatewayId"].isNull())
sslVpnServersObject.vpnGatewayId = value["VpnGatewayId"].asString();
if(!value["Name"].isNull())
sslVpnServersObject.name = value["Name"].asString();
if(!value["LocalSubnet"].isNull())
sslVpnServersObject.localSubnet = value["LocalSubnet"].asString();
if(!value["ClientIpPool"].isNull())
sslVpnServersObject.clientIpPool = value["ClientIpPool"].asString();
if(!value["CreateTime"].isNull())
sslVpnServersObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["Cipher"].isNull())
sslVpnServersObject.cipher = value["Cipher"].asString();
if(!value["Proto"].isNull())
sslVpnServersObject.proto = value["Proto"].asString();
if(!value["Port"].isNull())
sslVpnServersObject.port = std::stoi(value["Port"].asString());
if(!value["Compress"].isNull())
sslVpnServersObject.compress = value["Compress"].asString() == "true";
if(!value["Connections"].isNull())
sslVpnServersObject.connections = std::stoi(value["Connections"].asString());
if(!value["MaxConnections"].isNull())
sslVpnServersObject.maxConnections = std::stoi(value["MaxConnections"].asString());
if(!value["InternetIp"].isNull())
sslVpnServersObject.internetIp = value["InternetIp"].asString();
if(!valueSslVpnServersSslVpnServer["RegionId"].isNull())
sslVpnServersObject.regionId = valueSslVpnServersSslVpnServer["RegionId"].asString();
if(!valueSslVpnServersSslVpnServer["SslVpnServerId"].isNull())
sslVpnServersObject.sslVpnServerId = valueSslVpnServersSslVpnServer["SslVpnServerId"].asString();
if(!valueSslVpnServersSslVpnServer["VpnGatewayId"].isNull())
sslVpnServersObject.vpnGatewayId = valueSslVpnServersSslVpnServer["VpnGatewayId"].asString();
if(!valueSslVpnServersSslVpnServer["Name"].isNull())
sslVpnServersObject.name = valueSslVpnServersSslVpnServer["Name"].asString();
if(!valueSslVpnServersSslVpnServer["LocalSubnet"].isNull())
sslVpnServersObject.localSubnet = valueSslVpnServersSslVpnServer["LocalSubnet"].asString();
if(!valueSslVpnServersSslVpnServer["ClientIpPool"].isNull())
sslVpnServersObject.clientIpPool = valueSslVpnServersSslVpnServer["ClientIpPool"].asString();
if(!valueSslVpnServersSslVpnServer["CreateTime"].isNull())
sslVpnServersObject.createTime = std::stol(valueSslVpnServersSslVpnServer["CreateTime"].asString());
if(!valueSslVpnServersSslVpnServer["Cipher"].isNull())
sslVpnServersObject.cipher = valueSslVpnServersSslVpnServer["Cipher"].asString();
if(!valueSslVpnServersSslVpnServer["Proto"].isNull())
sslVpnServersObject.proto = valueSslVpnServersSslVpnServer["Proto"].asString();
if(!valueSslVpnServersSslVpnServer["Port"].isNull())
sslVpnServersObject.port = std::stoi(valueSslVpnServersSslVpnServer["Port"].asString());
if(!valueSslVpnServersSslVpnServer["Compress"].isNull())
sslVpnServersObject.compress = valueSslVpnServersSslVpnServer["Compress"].asString() == "true";
if(!valueSslVpnServersSslVpnServer["Connections"].isNull())
sslVpnServersObject.connections = std::stoi(valueSslVpnServersSslVpnServer["Connections"].asString());
if(!valueSslVpnServersSslVpnServer["MaxConnections"].isNull())
sslVpnServersObject.maxConnections = std::stoi(valueSslVpnServersSslVpnServer["MaxConnections"].asString());
if(!valueSslVpnServersSslVpnServer["InternetIp"].isNull())
sslVpnServersObject.internetIp = valueSslVpnServersSslVpnServer["InternetIp"].asString();
sslVpnServers_.push_back(sslVpnServersObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,22 +39,22 @@ void DescribeVRoutersResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVRouters = value["VRouters"]["VRouter"];
for (auto value : allVRouters)
auto allVRoutersNode = value["VRouters"]["VRouter"];
for (auto valueVRoutersVRouter : allVRoutersNode)
{
VRouter vRoutersObject;
if(!value["RegionId"].isNull())
vRoutersObject.regionId = value["RegionId"].asString();
if(!value["VpcId"].isNull())
vRoutersObject.vpcId = value["VpcId"].asString();
if(!value["VRouterName"].isNull())
vRoutersObject.vRouterName = value["VRouterName"].asString();
if(!value["Description"].isNull())
vRoutersObject.description = value["Description"].asString();
if(!value["VRouterId"].isNull())
vRoutersObject.vRouterId = value["VRouterId"].asString();
if(!value["CreationTime"].isNull())
vRoutersObject.creationTime = value["CreationTime"].asString();
if(!valueVRoutersVRouter["RegionId"].isNull())
vRoutersObject.regionId = valueVRoutersVRouter["RegionId"].asString();
if(!valueVRoutersVRouter["VpcId"].isNull())
vRoutersObject.vpcId = valueVRoutersVRouter["VpcId"].asString();
if(!valueVRoutersVRouter["VRouterName"].isNull())
vRoutersObject.vRouterName = valueVRoutersVRouter["VRouterName"].asString();
if(!valueVRoutersVRouter["Description"].isNull())
vRoutersObject.description = valueVRoutersVRouter["Description"].asString();
if(!valueVRoutersVRouter["VRouterId"].isNull())
vRoutersObject.vRouterId = valueVRoutersVRouter["VRouterId"].asString();
if(!valueVRoutersVRouter["CreationTime"].isNull())
vRoutersObject.creationTime = valueVRoutersVRouter["CreationTime"].asString();
auto allRouteTableIds = value["RouteTableIds"]["RouteTableId"];
for (auto value : allRouteTableIds)
vRoutersObject.routeTableIds.push_back(value.asString());

View File

@@ -39,14 +39,14 @@ void DescribeVSwitchAttributesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCloudResources = value["CloudResources"]["CloudResourceSetType"];
for (auto value : allCloudResources)
auto allCloudResourcesNode = value["CloudResources"]["CloudResourceSetType"];
for (auto valueCloudResourcesCloudResourceSetType : allCloudResourcesNode)
{
CloudResourceSetType cloudResourcesObject;
if(!value["ResourceType"].isNull())
cloudResourcesObject.resourceType = value["ResourceType"].asString();
if(!value["ResourceCount"].isNull())
cloudResourcesObject.resourceCount = std::stoi(value["ResourceCount"].asString());
if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull())
cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].asString();
if(!valueCloudResourcesCloudResourceSetType["ResourceCount"].isNull())
cloudResourcesObject.resourceCount = std::stoi(valueCloudResourcesCloudResourceSetType["ResourceCount"].asString());
cloudResources_.push_back(cloudResourcesObject);
}
auto routeTableNode = value["RouteTable"];

View File

@@ -39,44 +39,44 @@ void DescribeVSwitchesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVSwitches = value["VSwitches"]["VSwitch"];
for (auto value : allVSwitches)
auto allVSwitchesNode = value["VSwitches"]["VSwitch"];
for (auto valueVSwitchesVSwitch : allVSwitchesNode)
{
VSwitch vSwitchesObject;
if(!value["VSwitchId"].isNull())
vSwitchesObject.vSwitchId = value["VSwitchId"].asString();
if(!value["VpcId"].isNull())
vSwitchesObject.vpcId = value["VpcId"].asString();
if(!value["Status"].isNull())
vSwitchesObject.status = value["Status"].asString();
if(!value["CidrBlock"].isNull())
vSwitchesObject.cidrBlock = value["CidrBlock"].asString();
if(!value["Ipv6CidrBlock"].isNull())
vSwitchesObject.ipv6CidrBlock = value["Ipv6CidrBlock"].asString();
if(!value["ZoneId"].isNull())
vSwitchesObject.zoneId = value["ZoneId"].asString();
if(!value["AvailableIpAddressCount"].isNull())
vSwitchesObject.availableIpAddressCount = std::stol(value["AvailableIpAddressCount"].asString());
if(!value["Description"].isNull())
vSwitchesObject.description = value["Description"].asString();
if(!value["VSwitchName"].isNull())
vSwitchesObject.vSwitchName = value["VSwitchName"].asString();
if(!value["CreationTime"].isNull())
vSwitchesObject.creationTime = value["CreationTime"].asString();
if(!value["IsDefault"].isNull())
vSwitchesObject.isDefault = value["IsDefault"].asString() == "true";
if(!value["ResourceGroupId"].isNull())
vSwitchesObject.resourceGroupId = value["ResourceGroupId"].asString();
if(!value["NetworkAclId"].isNull())
vSwitchesObject.networkAclId = value["NetworkAclId"].asString();
auto allTags = value["Tags"]["Tag"];
for (auto value : allTags)
if(!valueVSwitchesVSwitch["VSwitchId"].isNull())
vSwitchesObject.vSwitchId = valueVSwitchesVSwitch["VSwitchId"].asString();
if(!valueVSwitchesVSwitch["VpcId"].isNull())
vSwitchesObject.vpcId = valueVSwitchesVSwitch["VpcId"].asString();
if(!valueVSwitchesVSwitch["Status"].isNull())
vSwitchesObject.status = valueVSwitchesVSwitch["Status"].asString();
if(!valueVSwitchesVSwitch["CidrBlock"].isNull())
vSwitchesObject.cidrBlock = valueVSwitchesVSwitch["CidrBlock"].asString();
if(!valueVSwitchesVSwitch["Ipv6CidrBlock"].isNull())
vSwitchesObject.ipv6CidrBlock = valueVSwitchesVSwitch["Ipv6CidrBlock"].asString();
if(!valueVSwitchesVSwitch["ZoneId"].isNull())
vSwitchesObject.zoneId = valueVSwitchesVSwitch["ZoneId"].asString();
if(!valueVSwitchesVSwitch["AvailableIpAddressCount"].isNull())
vSwitchesObject.availableIpAddressCount = std::stol(valueVSwitchesVSwitch["AvailableIpAddressCount"].asString());
if(!valueVSwitchesVSwitch["Description"].isNull())
vSwitchesObject.description = valueVSwitchesVSwitch["Description"].asString();
if(!valueVSwitchesVSwitch["VSwitchName"].isNull())
vSwitchesObject.vSwitchName = valueVSwitchesVSwitch["VSwitchName"].asString();
if(!valueVSwitchesVSwitch["CreationTime"].isNull())
vSwitchesObject.creationTime = valueVSwitchesVSwitch["CreationTime"].asString();
if(!valueVSwitchesVSwitch["IsDefault"].isNull())
vSwitchesObject.isDefault = valueVSwitchesVSwitch["IsDefault"].asString() == "true";
if(!valueVSwitchesVSwitch["ResourceGroupId"].isNull())
vSwitchesObject.resourceGroupId = valueVSwitchesVSwitch["ResourceGroupId"].asString();
if(!valueVSwitchesVSwitch["NetworkAclId"].isNull())
vSwitchesObject.networkAclId = valueVSwitchesVSwitch["NetworkAclId"].asString();
auto allTagsNode = allVSwitchesNode["Tags"]["Tag"];
for (auto allVSwitchesNodeTagsTag : allTagsNode)
{
VSwitch::Tag tagsObject;
if(!value["Key"].isNull())
tagsObject.key = value["Key"].asString();
if(!value["Value"].isNull())
tagsObject.value = value["Value"].asString();
if(!allVSwitchesNodeTagsTag["Key"].isNull())
tagsObject.key = allVSwitchesNodeTagsTag["Key"].asString();
if(!allVSwitchesNodeTagsTag["Value"].isNull())
tagsObject.value = allVSwitchesNodeTagsTag["Value"].asString();
vSwitchesObject.tags.push_back(tagsObject);
}
auto routeTableNode = value["RouteTable"];

View File

@@ -39,38 +39,38 @@ void DescribeVirtualBorderRoutersForPhysicalConnectionResult::parse(const std::s
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVirtualBorderRouterForPhysicalConnectionSet = value["VirtualBorderRouterForPhysicalConnectionSet"]["VirtualBorderRouterForPhysicalConnectionType"];
for (auto value : allVirtualBorderRouterForPhysicalConnectionSet)
auto allVirtualBorderRouterForPhysicalConnectionSetNode = value["VirtualBorderRouterForPhysicalConnectionSet"]["VirtualBorderRouterForPhysicalConnectionType"];
for (auto valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType : allVirtualBorderRouterForPhysicalConnectionSetNode)
{
VirtualBorderRouterForPhysicalConnectionType virtualBorderRouterForPhysicalConnectionSetObject;
if(!value["VbrId"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.vbrId = value["VbrId"].asString();
if(!value["VbrOwnerUid"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(value["VbrOwnerUid"].asString());
if(!value["EccId"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.eccId = value["EccId"].asString();
if(!value["Type"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.type = value["Type"].asString();
if(!value["CreationTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.creationTime = value["CreationTime"].asString();
if(!value["ActivationTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.activationTime = value["ActivationTime"].asString();
if(!value["TerminationTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.terminationTime = value["TerminationTime"].asString();
if(!value["RecoveryTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = value["RecoveryTime"].asString();
if(!value["VlanId"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(value["VlanId"].asString());
if(!value["Status"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.status = value["Status"].asString();
if(!value["CircuitCode"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.circuitCode = value["CircuitCode"].asString();
if(!value["LocalGatewayIp"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.localGatewayIp = value["LocalGatewayIp"].asString();
if(!value["PeerGatewayIp"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.peerGatewayIp = value["PeerGatewayIp"].asString();
if(!value["PeeringSubnetMask"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.peeringSubnetMask = value["PeeringSubnetMask"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.vbrId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrId"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.vbrOwnerUid = std::stol(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VbrOwnerUid"].asString());
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EccId"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.eccId = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["EccId"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Type"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.type = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Type"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.creationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CreationTime"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.activationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["ActivationTime"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.terminationTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["TerminationTime"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.recoveryTime = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["RecoveryTime"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.vlanId = std::stoi(valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["VlanId"].asString());
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Status"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.status = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["Status"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.circuitCode = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["CircuitCode"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalGatewayIp"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.localGatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["LocalGatewayIp"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerGatewayIp"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.peerGatewayIp = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeerGatewayIp"].asString();
if(!valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringSubnetMask"].isNull())
virtualBorderRouterForPhysicalConnectionSetObject.peeringSubnetMask = valueVirtualBorderRouterForPhysicalConnectionSetVirtualBorderRouterForPhysicalConnectionType["PeeringSubnetMask"].asString();
virtualBorderRouterForPhysicalConnectionSet_.push_back(virtualBorderRouterForPhysicalConnectionSetObject);
}
if(!value["PageNumber"].isNull())

View File

@@ -39,96 +39,96 @@ void DescribeVirtualBorderRoutersResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVirtualBorderRouterSet = value["VirtualBorderRouterSet"]["VirtualBorderRouterType"];
for (auto value : allVirtualBorderRouterSet)
auto allVirtualBorderRouterSetNode = value["VirtualBorderRouterSet"]["VirtualBorderRouterType"];
for (auto valueVirtualBorderRouterSetVirtualBorderRouterType : allVirtualBorderRouterSetNode)
{
VirtualBorderRouterType virtualBorderRouterSetObject;
if(!value["VbrId"].isNull())
virtualBorderRouterSetObject.vbrId = value["VbrId"].asString();
if(!value["CreationTime"].isNull())
virtualBorderRouterSetObject.creationTime = value["CreationTime"].asString();
if(!value["ActivationTime"].isNull())
virtualBorderRouterSetObject.activationTime = value["ActivationTime"].asString();
if(!value["TerminationTime"].isNull())
virtualBorderRouterSetObject.terminationTime = value["TerminationTime"].asString();
if(!value["RecoveryTime"].isNull())
virtualBorderRouterSetObject.recoveryTime = value["RecoveryTime"].asString();
if(!value["Status"].isNull())
virtualBorderRouterSetObject.status = value["Status"].asString();
if(!value["VlanId"].isNull())
virtualBorderRouterSetObject.vlanId = std::stoi(value["VlanId"].asString());
if(!value["CircuitCode"].isNull())
virtualBorderRouterSetObject.circuitCode = value["CircuitCode"].asString();
if(!value["RouteTableId"].isNull())
virtualBorderRouterSetObject.routeTableId = value["RouteTableId"].asString();
if(!value["VlanInterfaceId"].isNull())
virtualBorderRouterSetObject.vlanInterfaceId = value["VlanInterfaceId"].asString();
if(!value["LocalGatewayIp"].isNull())
virtualBorderRouterSetObject.localGatewayIp = value["LocalGatewayIp"].asString();
if(!value["PeerGatewayIp"].isNull())
virtualBorderRouterSetObject.peerGatewayIp = value["PeerGatewayIp"].asString();
if(!value["PeeringSubnetMask"].isNull())
virtualBorderRouterSetObject.peeringSubnetMask = value["PeeringSubnetMask"].asString();
if(!value["PhysicalConnectionId"].isNull())
virtualBorderRouterSetObject.physicalConnectionId = value["PhysicalConnectionId"].asString();
if(!value["PhysicalConnectionStatus"].isNull())
virtualBorderRouterSetObject.physicalConnectionStatus = value["PhysicalConnectionStatus"].asString();
if(!value["PhysicalConnectionBusinessStatus"].isNull())
virtualBorderRouterSetObject.physicalConnectionBusinessStatus = value["PhysicalConnectionBusinessStatus"].asString();
if(!value["PhysicalConnectionOwnerUid"].isNull())
virtualBorderRouterSetObject.physicalConnectionOwnerUid = value["PhysicalConnectionOwnerUid"].asString();
if(!value["AccessPointId"].isNull())
virtualBorderRouterSetObject.accessPointId = value["AccessPointId"].asString();
if(!value["Name"].isNull())
virtualBorderRouterSetObject.name = value["Name"].asString();
if(!value["Description"].isNull())
virtualBorderRouterSetObject.description = value["Description"].asString();
if(!value["EccId"].isNull())
virtualBorderRouterSetObject.eccId = value["EccId"].asString();
if(!value["Type"].isNull())
virtualBorderRouterSetObject.type = value["Type"].asString();
if(!value["MinTxInterval"].isNull())
virtualBorderRouterSetObject.minTxInterval = std::stol(value["MinTxInterval"].asString());
if(!value["MinRxInterval"].isNull())
virtualBorderRouterSetObject.minRxInterval = std::stol(value["MinRxInterval"].asString());
if(!value["DetectMultiplier"].isNull())
virtualBorderRouterSetObject.detectMultiplier = std::stol(value["DetectMultiplier"].asString());
auto allAssociatedPhysicalConnections = value["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"];
for (auto value : allAssociatedPhysicalConnections)
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].isNull())
virtualBorderRouterSetObject.vbrId = valueVirtualBorderRouterSetVirtualBorderRouterType["VbrId"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].isNull())
virtualBorderRouterSetObject.creationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["CreationTime"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].isNull())
virtualBorderRouterSetObject.activationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["ActivationTime"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].isNull())
virtualBorderRouterSetObject.terminationTime = valueVirtualBorderRouterSetVirtualBorderRouterType["TerminationTime"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].isNull())
virtualBorderRouterSetObject.recoveryTime = valueVirtualBorderRouterSetVirtualBorderRouterType["RecoveryTime"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].isNull())
virtualBorderRouterSetObject.status = valueVirtualBorderRouterSetVirtualBorderRouterType["Status"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].isNull())
virtualBorderRouterSetObject.vlanId = std::stoi(valueVirtualBorderRouterSetVirtualBorderRouterType["VlanId"].asString());
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].isNull())
virtualBorderRouterSetObject.circuitCode = valueVirtualBorderRouterSetVirtualBorderRouterType["CircuitCode"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].isNull())
virtualBorderRouterSetObject.routeTableId = valueVirtualBorderRouterSetVirtualBorderRouterType["RouteTableId"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].isNull())
virtualBorderRouterSetObject.vlanInterfaceId = valueVirtualBorderRouterSetVirtualBorderRouterType["VlanInterfaceId"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].isNull())
virtualBorderRouterSetObject.localGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["LocalGatewayIp"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].isNull())
virtualBorderRouterSetObject.peerGatewayIp = valueVirtualBorderRouterSetVirtualBorderRouterType["PeerGatewayIp"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].isNull())
virtualBorderRouterSetObject.peeringSubnetMask = valueVirtualBorderRouterSetVirtualBorderRouterType["PeeringSubnetMask"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].isNull())
virtualBorderRouterSetObject.physicalConnectionId = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionId"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].isNull())
virtualBorderRouterSetObject.physicalConnectionStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionStatus"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].isNull())
virtualBorderRouterSetObject.physicalConnectionBusinessStatus = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionBusinessStatus"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].isNull())
virtualBorderRouterSetObject.physicalConnectionOwnerUid = valueVirtualBorderRouterSetVirtualBorderRouterType["PhysicalConnectionOwnerUid"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].isNull())
virtualBorderRouterSetObject.accessPointId = valueVirtualBorderRouterSetVirtualBorderRouterType["AccessPointId"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].isNull())
virtualBorderRouterSetObject.name = valueVirtualBorderRouterSetVirtualBorderRouterType["Name"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].isNull())
virtualBorderRouterSetObject.description = valueVirtualBorderRouterSetVirtualBorderRouterType["Description"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["EccId"].isNull())
virtualBorderRouterSetObject.eccId = valueVirtualBorderRouterSetVirtualBorderRouterType["EccId"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["Type"].isNull())
virtualBorderRouterSetObject.type = valueVirtualBorderRouterSetVirtualBorderRouterType["Type"].asString();
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["MinTxInterval"].isNull())
virtualBorderRouterSetObject.minTxInterval = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["MinTxInterval"].asString());
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].isNull())
virtualBorderRouterSetObject.minRxInterval = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["MinRxInterval"].asString());
if(!valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].isNull())
virtualBorderRouterSetObject.detectMultiplier = std::stol(valueVirtualBorderRouterSetVirtualBorderRouterType["DetectMultiplier"].asString());
auto allAssociatedPhysicalConnectionsNode = allVirtualBorderRouterSetNode["AssociatedPhysicalConnections"]["AssociatedPhysicalConnection"];
for (auto allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection : allAssociatedPhysicalConnectionsNode)
{
VirtualBorderRouterType::AssociatedPhysicalConnection associatedPhysicalConnectionsObject;
if(!value["CircuitCode"].isNull())
associatedPhysicalConnectionsObject.circuitCode = value["CircuitCode"].asString();
if(!value["VlanInterfaceId"].isNull())
associatedPhysicalConnectionsObject.vlanInterfaceId = value["VlanInterfaceId"].asString();
if(!value["LocalGatewayIp"].isNull())
associatedPhysicalConnectionsObject.localGatewayIp = value["LocalGatewayIp"].asString();
if(!value["PeerGatewayIp"].isNull())
associatedPhysicalConnectionsObject.peerGatewayIp = value["PeerGatewayIp"].asString();
if(!value["PeeringSubnetMask"].isNull())
associatedPhysicalConnectionsObject.peeringSubnetMask = value["PeeringSubnetMask"].asString();
if(!value["PhysicalConnectionId"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionId = value["PhysicalConnectionId"].asString();
if(!value["PhysicalConnectionStatus"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionStatus = value["PhysicalConnectionStatus"].asString();
if(!value["PhysicalConnectionBusinessStatus"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionBusinessStatus = value["PhysicalConnectionBusinessStatus"].asString();
if(!value["PhysicalConnectionOwnerUid"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionOwnerUid = value["PhysicalConnectionOwnerUid"].asString();
if(!value["VlanId"].isNull())
associatedPhysicalConnectionsObject.vlanId = value["VlanId"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].isNull())
associatedPhysicalConnectionsObject.circuitCode = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["CircuitCode"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].isNull())
associatedPhysicalConnectionsObject.vlanInterfaceId = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanInterfaceId"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].isNull())
associatedPhysicalConnectionsObject.localGatewayIp = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["LocalGatewayIp"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].isNull())
associatedPhysicalConnectionsObject.peerGatewayIp = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeerGatewayIp"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].isNull())
associatedPhysicalConnectionsObject.peeringSubnetMask = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PeeringSubnetMask"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionId = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionId"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionStatus = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionStatus"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionBusinessStatus = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionBusinessStatus"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].isNull())
associatedPhysicalConnectionsObject.physicalConnectionOwnerUid = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["PhysicalConnectionOwnerUid"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].isNull())
associatedPhysicalConnectionsObject.vlanId = allVirtualBorderRouterSetNodeAssociatedPhysicalConnectionsAssociatedPhysicalConnection["VlanId"].asString();
virtualBorderRouterSetObject.associatedPhysicalConnections.push_back(associatedPhysicalConnectionsObject);
}
auto allAssociatedCens = value["AssociatedCens"]["AssociatedCen"];
for (auto value : allAssociatedCens)
auto allAssociatedCensNode = allVirtualBorderRouterSetNode["AssociatedCens"]["AssociatedCen"];
for (auto allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen : allAssociatedCensNode)
{
VirtualBorderRouterType::AssociatedCen associatedCensObject;
if(!value["CenId"].isNull())
associatedCensObject.cenId = value["CenId"].asString();
if(!value["CenOwnerId"].isNull())
associatedCensObject.cenOwnerId = std::stol(value["CenOwnerId"].asString());
if(!value["CenStatus"].isNull())
associatedCensObject.cenStatus = value["CenStatus"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenId"].isNull())
associatedCensObject.cenId = allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenId"].asString();
if(!allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenOwnerId"].isNull())
associatedCensObject.cenOwnerId = std::stol(allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenOwnerId"].asString());
if(!allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenStatus"].isNull())
associatedCensObject.cenStatus = allVirtualBorderRouterSetNodeAssociatedCensAssociatedCen["CenStatus"].asString();
virtualBorderRouterSetObject.associatedCens.push_back(associatedCensObject);
}
virtualBorderRouterSet_.push_back(virtualBorderRouterSetObject);

View File

@@ -39,26 +39,26 @@ void DescribeVpcAttributeResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAssociatedCens = value["AssociatedCens"]["AssociatedCen"];
for (auto value : allAssociatedCens)
auto allAssociatedCensNode = value["AssociatedCens"]["AssociatedCen"];
for (auto valueAssociatedCensAssociatedCen : allAssociatedCensNode)
{
AssociatedCen associatedCensObject;
if(!value["CenId"].isNull())
associatedCensObject.cenId = value["CenId"].asString();
if(!value["CenOwnerId"].isNull())
associatedCensObject.cenOwnerId = std::stol(value["CenOwnerId"].asString());
if(!value["CenStatus"].isNull())
associatedCensObject.cenStatus = value["CenStatus"].asString();
if(!valueAssociatedCensAssociatedCen["CenId"].isNull())
associatedCensObject.cenId = valueAssociatedCensAssociatedCen["CenId"].asString();
if(!valueAssociatedCensAssociatedCen["CenOwnerId"].isNull())
associatedCensObject.cenOwnerId = std::stol(valueAssociatedCensAssociatedCen["CenOwnerId"].asString());
if(!valueAssociatedCensAssociatedCen["CenStatus"].isNull())
associatedCensObject.cenStatus = valueAssociatedCensAssociatedCen["CenStatus"].asString();
associatedCens_.push_back(associatedCensObject);
}
auto allCloudResources = value["CloudResources"]["CloudResourceSetType"];
for (auto value : allCloudResources)
auto allCloudResourcesNode = value["CloudResources"]["CloudResourceSetType"];
for (auto valueCloudResourcesCloudResourceSetType : allCloudResourcesNode)
{
CloudResourceSetType cloudResourcesObject;
if(!value["ResourceType"].isNull())
cloudResourcesObject.resourceType = value["ResourceType"].asString();
if(!value["ResourceCount"].isNull())
cloudResourcesObject.resourceCount = std::stoi(value["ResourceCount"].asString());
if(!valueCloudResourcesCloudResourceSetType["ResourceType"].isNull())
cloudResourcesObject.resourceType = valueCloudResourcesCloudResourceSetType["ResourceType"].asString();
if(!valueCloudResourcesCloudResourceSetType["ResourceCount"].isNull())
cloudResourcesObject.resourceCount = std::stoi(valueCloudResourcesCloudResourceSetType["ResourceCount"].asString());
cloudResources_.push_back(cloudResourcesObject);
}
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];

View File

@@ -39,44 +39,44 @@ void DescribeVpcsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVpcs = value["Vpcs"]["Vpc"];
for (auto value : allVpcs)
auto allVpcsNode = value["Vpcs"]["Vpc"];
for (auto valueVpcsVpc : allVpcsNode)
{
Vpc vpcsObject;
if(!value["VpcId"].isNull())
vpcsObject.vpcId = value["VpcId"].asString();
if(!value["RegionId"].isNull())
vpcsObject.regionId = value["RegionId"].asString();
if(!value["Status"].isNull())
vpcsObject.status = value["Status"].asString();
if(!value["VpcName"].isNull())
vpcsObject.vpcName = value["VpcName"].asString();
if(!value["CreationTime"].isNull())
vpcsObject.creationTime = value["CreationTime"].asString();
if(!value["CidrBlock"].isNull())
vpcsObject.cidrBlock = value["CidrBlock"].asString();
if(!value["Ipv6CidrBlock"].isNull())
vpcsObject.ipv6CidrBlock = value["Ipv6CidrBlock"].asString();
if(!value["VRouterId"].isNull())
vpcsObject.vRouterId = value["VRouterId"].asString();
if(!value["Description"].isNull())
vpcsObject.description = value["Description"].asString();
if(!value["IsDefault"].isNull())
vpcsObject.isDefault = value["IsDefault"].asString() == "true";
if(!value["NetworkAclNum"].isNull())
vpcsObject.networkAclNum = value["NetworkAclNum"].asString();
if(!value["ResourceGroupId"].isNull())
vpcsObject.resourceGroupId = value["ResourceGroupId"].asString();
if(!value["CenStatus"].isNull())
vpcsObject.cenStatus = value["CenStatus"].asString();
auto allTags = value["Tags"]["Tag"];
for (auto value : allTags)
if(!valueVpcsVpc["VpcId"].isNull())
vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString();
if(!valueVpcsVpc["RegionId"].isNull())
vpcsObject.regionId = valueVpcsVpc["RegionId"].asString();
if(!valueVpcsVpc["Status"].isNull())
vpcsObject.status = valueVpcsVpc["Status"].asString();
if(!valueVpcsVpc["VpcName"].isNull())
vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString();
if(!valueVpcsVpc["CreationTime"].isNull())
vpcsObject.creationTime = valueVpcsVpc["CreationTime"].asString();
if(!valueVpcsVpc["CidrBlock"].isNull())
vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString();
if(!valueVpcsVpc["Ipv6CidrBlock"].isNull())
vpcsObject.ipv6CidrBlock = valueVpcsVpc["Ipv6CidrBlock"].asString();
if(!valueVpcsVpc["VRouterId"].isNull())
vpcsObject.vRouterId = valueVpcsVpc["VRouterId"].asString();
if(!valueVpcsVpc["Description"].isNull())
vpcsObject.description = valueVpcsVpc["Description"].asString();
if(!valueVpcsVpc["IsDefault"].isNull())
vpcsObject.isDefault = valueVpcsVpc["IsDefault"].asString() == "true";
if(!valueVpcsVpc["NetworkAclNum"].isNull())
vpcsObject.networkAclNum = valueVpcsVpc["NetworkAclNum"].asString();
if(!valueVpcsVpc["ResourceGroupId"].isNull())
vpcsObject.resourceGroupId = valueVpcsVpc["ResourceGroupId"].asString();
if(!valueVpcsVpc["CenStatus"].isNull())
vpcsObject.cenStatus = valueVpcsVpc["CenStatus"].asString();
auto allTagsNode = allVpcsNode["Tags"]["Tag"];
for (auto allVpcsNodeTagsTag : allTagsNode)
{
Vpc::Tag tagsObject;
if(!value["Key"].isNull())
tagsObject.key = value["Key"].asString();
if(!value["Value"].isNull())
tagsObject.value = value["Value"].asString();
if(!allVpcsNodeTagsTag["Key"].isNull())
tagsObject.key = allVpcsNodeTagsTag["Key"].asString();
if(!allVpcsNodeTagsTag["Value"].isNull())
tagsObject.value = allVpcsNodeTagsTag["Value"].asString();
vpcsObject.tags.push_back(tagsObject);
}
auto allVSwitchIds = value["VSwitchIds"]["VSwitchId"];

View File

@@ -39,28 +39,28 @@ void DescribeVpnConnectionsResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVpnConnections = value["VpnConnections"]["VpnConnection"];
for (auto value : allVpnConnections)
auto allVpnConnectionsNode = value["VpnConnections"]["VpnConnection"];
for (auto valueVpnConnectionsVpnConnection : allVpnConnectionsNode)
{
VpnConnection vpnConnectionsObject;
if(!value["VpnConnectionId"].isNull())
vpnConnectionsObject.vpnConnectionId = value["VpnConnectionId"].asString();
if(!value["CustomerGatewayId"].isNull())
vpnConnectionsObject.customerGatewayId = value["CustomerGatewayId"].asString();
if(!value["VpnGatewayId"].isNull())
vpnConnectionsObject.vpnGatewayId = value["VpnGatewayId"].asString();
if(!value["Name"].isNull())
vpnConnectionsObject.name = value["Name"].asString();
if(!value["LocalSubnet"].isNull())
vpnConnectionsObject.localSubnet = value["LocalSubnet"].asString();
if(!value["RemoteSubnet"].isNull())
vpnConnectionsObject.remoteSubnet = value["RemoteSubnet"].asString();
if(!value["CreateTime"].isNull())
vpnConnectionsObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["EffectImmediately"].isNull())
vpnConnectionsObject.effectImmediately = value["EffectImmediately"].asString() == "true";
if(!value["Status"].isNull())
vpnConnectionsObject.status = value["Status"].asString();
if(!valueVpnConnectionsVpnConnection["VpnConnectionId"].isNull())
vpnConnectionsObject.vpnConnectionId = valueVpnConnectionsVpnConnection["VpnConnectionId"].asString();
if(!valueVpnConnectionsVpnConnection["CustomerGatewayId"].isNull())
vpnConnectionsObject.customerGatewayId = valueVpnConnectionsVpnConnection["CustomerGatewayId"].asString();
if(!valueVpnConnectionsVpnConnection["VpnGatewayId"].isNull())
vpnConnectionsObject.vpnGatewayId = valueVpnConnectionsVpnConnection["VpnGatewayId"].asString();
if(!valueVpnConnectionsVpnConnection["Name"].isNull())
vpnConnectionsObject.name = valueVpnConnectionsVpnConnection["Name"].asString();
if(!valueVpnConnectionsVpnConnection["LocalSubnet"].isNull())
vpnConnectionsObject.localSubnet = valueVpnConnectionsVpnConnection["LocalSubnet"].asString();
if(!valueVpnConnectionsVpnConnection["RemoteSubnet"].isNull())
vpnConnectionsObject.remoteSubnet = valueVpnConnectionsVpnConnection["RemoteSubnet"].asString();
if(!valueVpnConnectionsVpnConnection["CreateTime"].isNull())
vpnConnectionsObject.createTime = std::stol(valueVpnConnectionsVpnConnection["CreateTime"].asString());
if(!valueVpnConnectionsVpnConnection["EffectImmediately"].isNull())
vpnConnectionsObject.effectImmediately = valueVpnConnectionsVpnConnection["EffectImmediately"].asString() == "true";
if(!valueVpnConnectionsVpnConnection["Status"].isNull())
vpnConnectionsObject.status = valueVpnConnectionsVpnConnection["Status"].asString();
auto ikeConfigNode = value["IkeConfig"];
if(!ikeConfigNode["Psk"].isNull())
vpnConnectionsObject.ikeConfig.psk = ikeConfigNode["Psk"].asString();

View File

@@ -39,42 +39,42 @@ void DescribeVpnGatewaysResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVpnGateways = value["VpnGateways"]["VpnGateway"];
for (auto value : allVpnGateways)
auto allVpnGatewaysNode = value["VpnGateways"]["VpnGateway"];
for (auto valueVpnGatewaysVpnGateway : allVpnGatewaysNode)
{
VpnGateway vpnGatewaysObject;
if(!value["VpnGatewayId"].isNull())
vpnGatewaysObject.vpnGatewayId = value["VpnGatewayId"].asString();
if(!value["VpcId"].isNull())
vpnGatewaysObject.vpcId = value["VpcId"].asString();
if(!value["VSwitchId"].isNull())
vpnGatewaysObject.vSwitchId = value["VSwitchId"].asString();
if(!value["InternetIp"].isNull())
vpnGatewaysObject.internetIp = value["InternetIp"].asString();
if(!value["CreateTime"].isNull())
vpnGatewaysObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["EndTime"].isNull())
vpnGatewaysObject.endTime = std::stol(value["EndTime"].asString());
if(!value["Spec"].isNull())
vpnGatewaysObject.spec = value["Spec"].asString();
if(!value["Name"].isNull())
vpnGatewaysObject.name = value["Name"].asString();
if(!value["Description"].isNull())
vpnGatewaysObject.description = value["Description"].asString();
if(!value["Status"].isNull())
vpnGatewaysObject.status = value["Status"].asString();
if(!value["BusinessStatus"].isNull())
vpnGatewaysObject.businessStatus = value["BusinessStatus"].asString();
if(!value["ChargeType"].isNull())
vpnGatewaysObject.chargeType = value["ChargeType"].asString();
if(!value["IpsecVpn"].isNull())
vpnGatewaysObject.ipsecVpn = value["IpsecVpn"].asString();
if(!value["SslVpn"].isNull())
vpnGatewaysObject.sslVpn = value["SslVpn"].asString();
if(!value["SslMaxConnections"].isNull())
vpnGatewaysObject.sslMaxConnections = std::stol(value["SslMaxConnections"].asString());
if(!value["Tag"].isNull())
vpnGatewaysObject.tag = value["Tag"].asString();
if(!valueVpnGatewaysVpnGateway["VpnGatewayId"].isNull())
vpnGatewaysObject.vpnGatewayId = valueVpnGatewaysVpnGateway["VpnGatewayId"].asString();
if(!valueVpnGatewaysVpnGateway["VpcId"].isNull())
vpnGatewaysObject.vpcId = valueVpnGatewaysVpnGateway["VpcId"].asString();
if(!valueVpnGatewaysVpnGateway["VSwitchId"].isNull())
vpnGatewaysObject.vSwitchId = valueVpnGatewaysVpnGateway["VSwitchId"].asString();
if(!valueVpnGatewaysVpnGateway["InternetIp"].isNull())
vpnGatewaysObject.internetIp = valueVpnGatewaysVpnGateway["InternetIp"].asString();
if(!valueVpnGatewaysVpnGateway["CreateTime"].isNull())
vpnGatewaysObject.createTime = std::stol(valueVpnGatewaysVpnGateway["CreateTime"].asString());
if(!valueVpnGatewaysVpnGateway["EndTime"].isNull())
vpnGatewaysObject.endTime = std::stol(valueVpnGatewaysVpnGateway["EndTime"].asString());
if(!valueVpnGatewaysVpnGateway["Spec"].isNull())
vpnGatewaysObject.spec = valueVpnGatewaysVpnGateway["Spec"].asString();
if(!valueVpnGatewaysVpnGateway["Name"].isNull())
vpnGatewaysObject.name = valueVpnGatewaysVpnGateway["Name"].asString();
if(!valueVpnGatewaysVpnGateway["Description"].isNull())
vpnGatewaysObject.description = valueVpnGatewaysVpnGateway["Description"].asString();
if(!valueVpnGatewaysVpnGateway["Status"].isNull())
vpnGatewaysObject.status = valueVpnGatewaysVpnGateway["Status"].asString();
if(!valueVpnGatewaysVpnGateway["BusinessStatus"].isNull())
vpnGatewaysObject.businessStatus = valueVpnGatewaysVpnGateway["BusinessStatus"].asString();
if(!valueVpnGatewaysVpnGateway["ChargeType"].isNull())
vpnGatewaysObject.chargeType = valueVpnGatewaysVpnGateway["ChargeType"].asString();
if(!valueVpnGatewaysVpnGateway["IpsecVpn"].isNull())
vpnGatewaysObject.ipsecVpn = valueVpnGatewaysVpnGateway["IpsecVpn"].asString();
if(!valueVpnGatewaysVpnGateway["SslVpn"].isNull())
vpnGatewaysObject.sslVpn = valueVpnGatewaysVpnGateway["SslVpn"].asString();
if(!valueVpnGatewaysVpnGateway["SslMaxConnections"].isNull())
vpnGatewaysObject.sslMaxConnections = std::stol(valueVpnGatewaysVpnGateway["SslMaxConnections"].asString());
if(!valueVpnGatewaysVpnGateway["Tag"].isNull())
vpnGatewaysObject.tag = valueVpnGatewaysVpnGateway["Tag"].asString();
vpnGateways_.push_back(vpnGatewaysObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,24 +39,24 @@ void DescribeVpnPbrRouteEntriesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVpnPbrRouteEntries = value["VpnPbrRouteEntries"]["VpnPbrRouteEntry"];
for (auto value : allVpnPbrRouteEntries)
auto allVpnPbrRouteEntriesNode = value["VpnPbrRouteEntries"]["VpnPbrRouteEntry"];
for (auto valueVpnPbrRouteEntriesVpnPbrRouteEntry : allVpnPbrRouteEntriesNode)
{
VpnPbrRouteEntry vpnPbrRouteEntriesObject;
if(!value["VpnInstanceId"].isNull())
vpnPbrRouteEntriesObject.vpnInstanceId = value["VpnInstanceId"].asString();
if(!value["RouteSource"].isNull())
vpnPbrRouteEntriesObject.routeSource = value["RouteSource"].asString();
if(!value["RouteDest"].isNull())
vpnPbrRouteEntriesObject.routeDest = value["RouteDest"].asString();
if(!value["NextHop"].isNull())
vpnPbrRouteEntriesObject.nextHop = value["NextHop"].asString();
if(!value["Weight"].isNull())
vpnPbrRouteEntriesObject.weight = std::stoi(value["Weight"].asString());
if(!value["CreateTime"].isNull())
vpnPbrRouteEntriesObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["State"].isNull())
vpnPbrRouteEntriesObject.state = value["State"].asString();
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["VpnInstanceId"].isNull())
vpnPbrRouteEntriesObject.vpnInstanceId = valueVpnPbrRouteEntriesVpnPbrRouteEntry["VpnInstanceId"].asString();
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].isNull())
vpnPbrRouteEntriesObject.routeSource = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteSource"].asString();
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteDest"].isNull())
vpnPbrRouteEntriesObject.routeDest = valueVpnPbrRouteEntriesVpnPbrRouteEntry["RouteDest"].asString();
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["NextHop"].isNull())
vpnPbrRouteEntriesObject.nextHop = valueVpnPbrRouteEntriesVpnPbrRouteEntry["NextHop"].asString();
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["Weight"].isNull())
vpnPbrRouteEntriesObject.weight = std::stoi(valueVpnPbrRouteEntriesVpnPbrRouteEntry["Weight"].asString());
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["CreateTime"].isNull())
vpnPbrRouteEntriesObject.createTime = std::stol(valueVpnPbrRouteEntriesVpnPbrRouteEntry["CreateTime"].asString());
if(!valueVpnPbrRouteEntriesVpnPbrRouteEntry["State"].isNull())
vpnPbrRouteEntriesObject.state = valueVpnPbrRouteEntriesVpnPbrRouteEntry["State"].asString();
vpnPbrRouteEntries_.push_back(vpnPbrRouteEntriesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,22 +39,22 @@ void DescribeVpnRouteEntriesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVpnRouteEntries = value["VpnRouteEntries"]["VpnRouteEntry"];
for (auto value : allVpnRouteEntries)
auto allVpnRouteEntriesNode = value["VpnRouteEntries"]["VpnRouteEntry"];
for (auto valueVpnRouteEntriesVpnRouteEntry : allVpnRouteEntriesNode)
{
VpnRouteEntry vpnRouteEntriesObject;
if(!value["VpnInstanceId"].isNull())
vpnRouteEntriesObject.vpnInstanceId = value["VpnInstanceId"].asString();
if(!value["RouteDest"].isNull())
vpnRouteEntriesObject.routeDest = value["RouteDest"].asString();
if(!value["NextHop"].isNull())
vpnRouteEntriesObject.nextHop = value["NextHop"].asString();
if(!value["Weight"].isNull())
vpnRouteEntriesObject.weight = std::stoi(value["Weight"].asString());
if(!value["CreateTime"].isNull())
vpnRouteEntriesObject.createTime = std::stol(value["CreateTime"].asString());
if(!value["State"].isNull())
vpnRouteEntriesObject.state = value["State"].asString();
if(!valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].isNull())
vpnRouteEntriesObject.vpnInstanceId = valueVpnRouteEntriesVpnRouteEntry["VpnInstanceId"].asString();
if(!valueVpnRouteEntriesVpnRouteEntry["RouteDest"].isNull())
vpnRouteEntriesObject.routeDest = valueVpnRouteEntriesVpnRouteEntry["RouteDest"].asString();
if(!valueVpnRouteEntriesVpnRouteEntry["NextHop"].isNull())
vpnRouteEntriesObject.nextHop = valueVpnRouteEntriesVpnRouteEntry["NextHop"].asString();
if(!valueVpnRouteEntriesVpnRouteEntry["Weight"].isNull())
vpnRouteEntriesObject.weight = std::stoi(valueVpnRouteEntriesVpnRouteEntry["Weight"].asString());
if(!valueVpnRouteEntriesVpnRouteEntry["CreateTime"].isNull())
vpnRouteEntriesObject.createTime = std::stol(valueVpnRouteEntriesVpnRouteEntry["CreateTime"].asString());
if(!valueVpnRouteEntriesVpnRouteEntry["State"].isNull())
vpnRouteEntriesObject.state = valueVpnRouteEntriesVpnRouteEntry["State"].asString();
vpnRouteEntries_.push_back(vpnRouteEntriesObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -39,14 +39,14 @@ void DescribeZonesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allZones = value["Zones"]["Zone"];
for (auto value : allZones)
auto allZonesNode = value["Zones"]["Zone"];
for (auto valueZonesZone : allZonesNode)
{
Zone zonesObject;
if(!value["ZoneId"].isNull())
zonesObject.zoneId = value["ZoneId"].asString();
if(!value["LocalName"].isNull())
zonesObject.localName = value["LocalName"].asString();
if(!valueZonesZone["ZoneId"].isNull())
zonesObject.zoneId = valueZonesZone["ZoneId"].asString();
if(!valueZonesZone["LocalName"].isNull())
zonesObject.localName = valueZonesZone["LocalName"].asString();
zones_.push_back(zonesObject);
}

View File

@@ -39,18 +39,18 @@ void ListTagResourcesResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResources = value["TagResources"]["TagResource"];
for (auto value : allTagResources)
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!value["TagKey"].isNull())
tagResourcesObject.tagKey = value["TagKey"].asString();
if(!value["TagValue"].isNull())
tagResourcesObject.tagValue = value["TagValue"].asString();
if(!value["ResourcId"].isNull())
tagResourcesObject.resourcId = value["ResourcId"].asString();
if(!value["ResourceType"].isNull())
tagResourcesObject.resourceType = value["ResourceType"].asString();
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourcId"].isNull())
tagResourcesObject.resourcId = valueTagResourcesTagResource["ResourcId"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
tagResources_.push_back(tagResourcesObject);
}
if(!value["NextToken"].isNull())