Add deleteNacosInstance.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
2022-02-10 Version: 1.36.1052
|
||||||
|
- Add deleteNacosInstance.
|
||||||
|
|
||||||
2022-02-09 Version: 1.36.1051
|
2022-02-09 Version: 1.36.1051
|
||||||
- Added api QueryWorksBloodRelationship.
|
- Added api QueryWorksBloodRelationship.
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,10 @@ namespace AlibabaCloud
|
|||||||
std::string projectName;
|
std::string projectName;
|
||||||
bool logEnabled;
|
bool logEnabled;
|
||||||
};
|
};
|
||||||
|
bool disableHttp2Alpn;
|
||||||
TraceDetails traceDetails;
|
TraceDetails traceDetails;
|
||||||
LogConfigDetails logConfigDetails;
|
LogConfigDetails logConfigDetails;
|
||||||
|
bool enableHardwareAcceleration;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ namespace Model {
|
|||||||
class ALIBABACLOUD_MSE_EXPORT UpdateGatewayOptionRequest : public RpcServiceRequest {
|
class ALIBABACLOUD_MSE_EXPORT UpdateGatewayOptionRequest : public RpcServiceRequest {
|
||||||
public:
|
public:
|
||||||
struct GatewayOption {
|
struct GatewayOption {
|
||||||
|
bool enableHardwareAcceleration;
|
||||||
|
bool disableHttp2Alpn;
|
||||||
struct LogConfigDetails {
|
struct LogConfigDetails {
|
||||||
std::string projectName;
|
std::string projectName;
|
||||||
std::string logStoreName;
|
std::string logStoreName;
|
||||||
|
|||||||
@@ -45,8 +45,10 @@ namespace AlibabaCloud
|
|||||||
std::string projectName;
|
std::string projectName;
|
||||||
bool logEnabled;
|
bool logEnabled;
|
||||||
};
|
};
|
||||||
|
bool disableHttp2Alpn;
|
||||||
TraceDetails traceDetails;
|
TraceDetails traceDetails;
|
||||||
LogConfigDetails logConfigDetails;
|
LogConfigDetails logConfigDetails;
|
||||||
|
bool enableHardwareAcceleration;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,21 +31,21 @@ MseClient::MseClient(const Credentials &credentials, const ClientConfiguration &
|
|||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(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) :
|
MseClient::MseClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(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) :
|
MseClient::MseClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||||
{
|
{
|
||||||
auto locationClient = std::make_shared<LocationClient>(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()
|
MseClient::~MseClient()
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ void GetGatewayOptionResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
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"];
|
auto traceDetailsNode = dataNode["TraceDetails"];
|
||||||
if(!traceDetailsNode["TraceEnabled"].isNull())
|
if(!traceDetailsNode["TraceEnabled"].isNull())
|
||||||
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ UpdateGatewayOptionRequest::GatewayOption UpdateGatewayOptionRequest::getGateway
|
|||||||
|
|
||||||
void UpdateGatewayOptionRequest::setGatewayOption(const UpdateGatewayOptionRequest::GatewayOption &gatewayOption) {
|
void UpdateGatewayOptionRequest::setGatewayOption(const UpdateGatewayOptionRequest::GatewayOption &gatewayOption) {
|
||||||
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.ProjectName", gatewayOption.logConfigDetails.projectName);
|
||||||
setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogStoreName", gatewayOption.logConfigDetails.logStoreName);
|
setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogStoreName", gatewayOption.logConfigDetails.logStoreName);
|
||||||
setParameter(std::string("GatewayOption") + ".LogConfigDetails.LogEnabled", gatewayOption.logConfigDetails.logEnabled ? "true" : "false");
|
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);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto dataNode = value["Data"];
|
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"];
|
auto traceDetailsNode = dataNode["TraceDetails"];
|
||||||
if(!traceDetailsNode["TraceEnabled"].isNull())
|
if(!traceDetailsNode["TraceEnabled"].isNull())
|
||||||
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
||||||
|
|||||||
Reference in New Issue
Block a user