Add deleteNacosInstance.
This commit is contained in:
@@ -45,8 +45,10 @@ namespace AlibabaCloud
|
||||
std::string projectName;
|
||||
bool logEnabled;
|
||||
};
|
||||
bool disableHttp2Alpn;
|
||||
TraceDetails traceDetails;
|
||||
LogConfigDetails logConfigDetails;
|
||||
bool enableHardwareAcceleration;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -45,8 +45,10 @@ namespace AlibabaCloud
|
||||
std::string projectName;
|
||||
bool logEnabled;
|
||||
};
|
||||
bool disableHttp2Alpn;
|
||||
TraceDetails traceDetails;
|
||||
LogConfigDetails logConfigDetails;
|
||||
bool enableHardwareAcceleration;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user