Add deleteNacosInstance.

This commit is contained in:
sdk-team
2022-02-10 01:24:21 +00:00
parent 1a4543ff56
commit 4bfb40e4b1
9 changed files with 23 additions and 4 deletions

View File

@@ -45,8 +45,10 @@ namespace AlibabaCloud
std::string projectName;
bool logEnabled;
};
bool disableHttp2Alpn;
TraceDetails traceDetails;
LogConfigDetails logConfigDetails;
bool enableHardwareAcceleration;
};

View File

@@ -29,6 +29,8 @@ namespace Model {
class ALIBABACLOUD_MSE_EXPORT UpdateGatewayOptionRequest : public RpcServiceRequest {
public:
struct GatewayOption {
bool enableHardwareAcceleration;
bool disableHttp2Alpn;
struct LogConfigDetails {
std::string projectName;
std::string logStoreName;

View File

@@ -45,8 +45,10 @@ namespace AlibabaCloud
std::string projectName;
bool logEnabled;
};
bool disableHttp2Alpn;
TraceDetails traceDetails;
LogConfigDetails logConfigDetails;
bool enableHardwareAcceleration;
};

View File

@@ -31,21 +31,21 @@ MseClient::MseClient(const Credentials &credentials, const ClientConfiguration &
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "mse");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
MseClient::MseClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "mse");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
MseClient::MseClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "mse");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
MseClient::~MseClient()

View File

@@ -40,6 +40,10 @@ void GetGatewayOptionResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["EnableHardwareAcceleration"].isNull())
data_.enableHardwareAcceleration = dataNode["EnableHardwareAcceleration"].asString() == "true";
if(!dataNode["DisableHttp2Alpn"].isNull())
data_.disableHttp2Alpn = dataNode["DisableHttp2Alpn"].asString() == "true";
auto traceDetailsNode = dataNode["TraceDetails"];
if(!traceDetailsNode["TraceEnabled"].isNull())
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";

View File

@@ -40,6 +40,8 @@ UpdateGatewayOptionRequest::GatewayOption UpdateGatewayOptionRequest::getGateway
void UpdateGatewayOptionRequest::setGatewayOption(const UpdateGatewayOptionRequest::GatewayOption &gatewayOption) {
gatewayOption_ = gatewayOption;
setParameter(std::string("GatewayOption") + ".EnableHardwareAcceleration", gatewayOption.enableHardwareAcceleration ? "true" : "false");
setParameter(std::string("GatewayOption") + ".DisableHttp2Alpn", gatewayOption.disableHttp2Alpn ? "true" : "false");
setParameter(std::string("GatewayOption") + ".LogConfigDetails.ProjectName", gatewayOption.logConfigDetails.projectName);
setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogStoreName", gatewayOption.logConfigDetails.logStoreName);
setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogEnabled", gatewayOption.logConfigDetails.logEnabled ? "true" : "false");

View File

@@ -40,6 +40,10 @@ void UpdateGatewayOptionResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["EnableHardwareAcceleration"].isNull())
data_.enableHardwareAcceleration = dataNode["EnableHardwareAcceleration"].asString() == "true";
if(!dataNode["DisableHttp2Alpn"].isNull())
data_.disableHttp2Alpn = dataNode["DisableHttp2Alpn"].asString() == "true";
auto traceDetailsNode = dataNode["TraceDetails"];
if(!traceDetailsNode["TraceEnabled"].isNull())
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";