Support EndpointType and ServiceType.

This commit is contained in:
sdk-team
2021-12-03 06:19:13 +00:00
parent ba890b6d6c
commit 9b5da5d494
10 changed files with 34 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2021-12-03 Version: 1.36.962
- Support EndpointType and ServiceType.
2021-12-02 Version: 1.36.961
- Update MergeImageFace QueryFaceImageTemplate AddFaceImageTemplate DeleteFaceImageTemplate.

View File

@@ -1 +1 @@
1.36.961
1.36.962

View File

@@ -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_;

View File

@@ -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 &regionId);
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_;

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct Resource
{
long relatedEndpointCount;
long relatedDeprecatedEndpointCount;
std::string vpcId;
std::string zoneId;
std::string resourceId;

View File

@@ -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;

View File

@@ -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_;

View File

@@ -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_;
}

View File

@@ -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())

View File

@@ -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());