Support EndpointType and ServiceType.
This commit is contained in:
@@ -52,6 +52,7 @@ namespace AlibabaCloud
|
||||
int getBandwidth()const;
|
||||
std::string getEndpointId()const;
|
||||
std::string getEndpointType()const;
|
||||
std::string getPrivateServiceName()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getConnectionStatus()const;
|
||||
bool getZoneAffinityEnabled()const;
|
||||
@@ -74,6 +75,7 @@ namespace AlibabaCloud
|
||||
int bandwidth_;
|
||||
std::string endpointId_;
|
||||
std::string endpointType_;
|
||||
std::string privateServiceName_;
|
||||
std::string regionId_;
|
||||
std::string connectionStatus_;
|
||||
bool zoneAffinityEnabled_;
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setEndpointId(const std::string &endpointId);
|
||||
long getEndpointOwnerId() const;
|
||||
void setEndpointOwnerId(long endpointOwnerId);
|
||||
std::string getReplacedResourceId() const;
|
||||
void setReplacedResourceId(const std::string &replacedResourceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getNextToken() const;
|
||||
@@ -52,6 +54,7 @@ public:
|
||||
private:
|
||||
std::string endpointId_;
|
||||
long endpointOwnerId_;
|
||||
std::string replacedResourceId_;
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::string resourceId_;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Resource
|
||||
{
|
||||
long relatedEndpointCount;
|
||||
long relatedDeprecatedEndpointCount;
|
||||
std::string vpcId;
|
||||
std::string zoneId;
|
||||
std::string resourceId;
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
std::string payer;
|
||||
std::string serviceName;
|
||||
std::string serviceType;
|
||||
std::string serviceDescription;
|
||||
std::string privateServiceName;
|
||||
std::string serviceDomain;
|
||||
std::string serviceId;
|
||||
std::vector<std::string> zones;
|
||||
|
||||
@@ -75,6 +75,8 @@ void GetVpcEndpointAttributeResult::parse(const std::string &payload)
|
||||
connectionStatus_ = value["ConnectionStatus"].asString();
|
||||
if(!value["ZoneAffinityEnabled"].isNull())
|
||||
zoneAffinityEnabled_ = value["ZoneAffinityEnabled"].asString() == "true";
|
||||
if(!value["PrivateServiceName"].isNull())
|
||||
privateServiceName_ = value["PrivateServiceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -153,6 +155,11 @@ std::string GetVpcEndpointAttributeResult::getEndpointType()const
|
||||
return endpointType_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getPrivateServiceName()const
|
||||
{
|
||||
return privateServiceName_;
|
||||
}
|
||||
|
||||
std::string GetVpcEndpointAttributeResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -43,6 +43,15 @@ void ListVpcEndpointConnectionsRequest::setEndpointOwnerId(long endpointOwnerId)
|
||||
setParameter(std::string("EndpointOwnerId"), std::to_string(endpointOwnerId));
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getReplacedResourceId() const {
|
||||
return replacedResourceId_;
|
||||
}
|
||||
|
||||
void ListVpcEndpointConnectionsRequest::setReplacedResourceId(const std::string &replacedResourceId) {
|
||||
replacedResourceId_ = replacedResourceId;
|
||||
setParameter(std::string("ReplacedResourceId"), replacedResourceId);
|
||||
}
|
||||
|
||||
std::string ListVpcEndpointConnectionsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -59,6 +59,8 @@ void ListVpcEndpointServiceResourcesResult::parse(const std::string &payload)
|
||||
resourcesObject.regionId = valueResourcesResource["RegionId"].asString();
|
||||
if(!valueResourcesResource["RelatedEndpointCount"].isNull())
|
||||
resourcesObject.relatedEndpointCount = std::stol(valueResourcesResource["RelatedEndpointCount"].asString());
|
||||
if(!valueResourcesResource["RelatedDeprecatedEndpointCount"].isNull())
|
||||
resourcesObject.relatedDeprecatedEndpointCount = std::stol(valueResourcesResource["RelatedDeprecatedEndpointCount"].asString());
|
||||
if(!valueResourcesResource["AutoAllocatedEnabled"].isNull())
|
||||
resourcesObject.autoAllocatedEnabled = valueResourcesResource["AutoAllocatedEnabled"].asString() == "true";
|
||||
if(!valueResourcesResource["StatusInfo"].isNull())
|
||||
|
||||
@@ -53,6 +53,10 @@ void ListVpcEndpointServicesByEndUserResult::parse(const std::string &payload)
|
||||
servicesObject.serviceName = valueServicesService["ServiceName"].asString();
|
||||
if(!valueServicesService["ServiceType"].isNull())
|
||||
servicesObject.serviceType = valueServicesService["ServiceType"].asString();
|
||||
if(!valueServicesService["ServiceDescription"].isNull())
|
||||
servicesObject.serviceDescription = valueServicesService["ServiceDescription"].asString();
|
||||
if(!valueServicesService["PrivateServiceName"].isNull())
|
||||
servicesObject.privateServiceName = valueServicesService["PrivateServiceName"].asString();
|
||||
auto allZones = value["Zones"]["Zone"];
|
||||
for (auto value : allZones)
|
||||
servicesObject.zones.push_back(value.asString());
|
||||
|
||||
Reference in New Issue
Block a user