Jelajahi Sumber

Support EndpointType and ServiceType.

sdk-team 4 tahun lalu
induk
melakukan
9b5da5d494

+ 3 - 0
CHANGELOG

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

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.961
+1.36.962

+ 2 - 0
privatelink/include/alibabacloud/privatelink/model/GetVpcEndpointAttributeResult.h

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

+ 3 - 0
privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointConnectionsRequest.h

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

+ 1 - 0
privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServiceResourcesResult.h

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

+ 2 - 0
privatelink/include/alibabacloud/privatelink/model/ListVpcEndpointServicesByEndUserResult.h

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

+ 7 - 0
privatelink/src/model/GetVpcEndpointAttributeResult.cc

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

+ 9 - 0
privatelink/src/model/ListVpcEndpointConnectionsRequest.cc

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

+ 2 - 0
privatelink/src/model/ListVpcEndpointServiceResourcesResult.cc

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

+ 4 - 0
privatelink/src/model/ListVpcEndpointServicesByEndUserResult.cc

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