Add response Permission.
This commit is contained in:
@@ -43,6 +43,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string status;
|
||||
std::string deployType;
|
||||
std::vector<std::string> upgradableServiceVersions;
|
||||
std::string serviceId;
|
||||
std::string deployMetadata;
|
||||
std::string version;
|
||||
@@ -65,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> endpointIps;
|
||||
std::string ingressEndpointStatus;
|
||||
std::string vpcId;
|
||||
std::string domainName;
|
||||
std::string networkServiceStatus;
|
||||
std::vector<std::string> vSwitches;
|
||||
};
|
||||
@@ -113,6 +115,7 @@ namespace AlibabaCloud
|
||||
Service getService()const;
|
||||
std::string getPayType()const;
|
||||
long getUserId()const;
|
||||
std::string getEnableUserPrometheus()const;
|
||||
std::string getStatusDetail()const;
|
||||
std::string getUpdateTime()const;
|
||||
std::string getOutputs()const;
|
||||
@@ -143,6 +146,7 @@ namespace AlibabaCloud
|
||||
Service service_;
|
||||
std::string payType_;
|
||||
long userId_;
|
||||
std::string enableUserPrometheus_;
|
||||
std::string statusDetail_;
|
||||
std::string updateTime_;
|
||||
std::string outputs_;
|
||||
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
void setNextToken(const std::string &nextToken);
|
||||
std::vector<Tag> getTag() const;
|
||||
void setTag(const std::vector<Tag> &tag);
|
||||
bool getShowDeleted() const;
|
||||
void setShowDeleted(bool showDeleted);
|
||||
std::vector<Filter> getFilter() const;
|
||||
void setFilter(const std::vector<Filter> &filter);
|
||||
std::string getMaxResults() const;
|
||||
@@ -52,6 +54,7 @@ private:
|
||||
std::string regionId_;
|
||||
std::string nextToken_;
|
||||
std::vector<Tag> tag_;
|
||||
bool showDeleted_;
|
||||
std::vector<Filter> filter_;
|
||||
std::string maxResults_;
|
||||
};
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string status;
|
||||
std::string deployType;
|
||||
std::string deployMetadata;
|
||||
bool enablePrivateVpcConnection;
|
||||
std::string version;
|
||||
std::string supplierName;
|
||||
std::string serviceType;
|
||||
|
||||
@@ -88,6 +88,9 @@ void GetServiceInstanceResult::parse(const std::string &payload)
|
||||
serviceInfoObject.shortDescription = serviceNodeServiceInfosServiceInfo["ShortDescription"].asString();
|
||||
service_.serviceInfos.push_back(serviceInfoObject);
|
||||
}
|
||||
auto allUpgradableServiceVersions = serviceNode["UpgradableServiceVersions"]["UpgradableServiceVersion"];
|
||||
for (auto value : allUpgradableServiceVersions)
|
||||
service_.upgradableServiceVersions.push_back(value.asString());
|
||||
auto networkConfigNode = value["NetworkConfig"];
|
||||
if(!networkConfigNode["EndpointServiceId"].isNull())
|
||||
networkConfig_.endpointServiceId = networkConfigNode["EndpointServiceId"].asString();
|
||||
@@ -113,6 +116,8 @@ void GetServiceInstanceResult::parse(const std::string &payload)
|
||||
connectionConfigsObject.ingressEndpointStatus = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["IngressEndpointStatus"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["NetworkServiceStatus"].isNull())
|
||||
connectionConfigsObject.networkServiceStatus = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["NetworkServiceStatus"].asString();
|
||||
if(!networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["DomainName"].isNull())
|
||||
connectionConfigsObject.domainName = networkConfigNodePrivateVpcConnectionsPrivateVpcConnectionConnectionConfigsConnectionConfig["DomainName"].asString();
|
||||
auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"];
|
||||
for (auto value : allSecurityGroups)
|
||||
connectionConfigsObject.securityGroups.push_back(value.asString());
|
||||
@@ -182,6 +187,8 @@ void GetServiceInstanceResult::parse(const std::string &payload)
|
||||
licenseMetadata_ = value["LicenseMetadata"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["EnableUserPrometheus"].isNull())
|
||||
enableUserPrometheus_ = value["EnableUserPrometheus"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -285,6 +292,11 @@ long GetServiceInstanceResult::getUserId()const
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getEnableUserPrometheus()const
|
||||
{
|
||||
return enableUserPrometheus_;
|
||||
}
|
||||
|
||||
std::string GetServiceInstanceResult::getStatusDetail()const
|
||||
{
|
||||
return statusDetail_;
|
||||
|
||||
@@ -57,6 +57,15 @@ void ListServiceInstancesRequest::setTag(const std::vector<ListServiceInstancesR
|
||||
}
|
||||
}
|
||||
|
||||
bool ListServiceInstancesRequest::getShowDeleted() const {
|
||||
return showDeleted_;
|
||||
}
|
||||
|
||||
void ListServiceInstancesRequest::setShowDeleted(bool showDeleted) {
|
||||
showDeleted_ = showDeleted;
|
||||
setParameter(std::string("ShowDeleted"), showDeleted ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<ListServiceInstancesRequest::Filter> ListServiceInstancesRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
@@ -112,6 +112,8 @@ void ListServiceInstancesResult::parse(const std::string &payload)
|
||||
serviceInstancesObject.service.versionName = serviceNode["VersionName"].asString();
|
||||
if(!serviceNode["DeployMetadata"].isNull())
|
||||
serviceInstancesObject.service.deployMetadata = serviceNode["DeployMetadata"].asString();
|
||||
if(!serviceNode["EnablePrivateVpcConnection"].isNull())
|
||||
serviceInstancesObject.service.enablePrivateVpcConnection = serviceNode["EnablePrivateVpcConnection"].asString() == "true";
|
||||
auto allServiceInfosNode = serviceNode["ServiceInfos"]["ServiceInfo"];
|
||||
for (auto serviceNodeServiceInfosServiceInfo : allServiceInfosNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user