in servicemesh-20200111/src/main/java/com/aliyun/servicemesh20200111/Client.java [317:637]
public CreateServiceMeshResponse createServiceMeshWithOptions(CreateServiceMeshRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
com.aliyun.teautil.Common.validateModel(request);
java.util.Map<String, Object> query = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.tag)) {
query.put("Tag", request.tag);
}
java.util.Map<String, Object> body = new java.util.HashMap<>();
if (!com.aliyun.teautil.Common.isUnset(request.accessLogEnabled)) {
body.put("AccessLogEnabled", request.accessLogEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.accessLogFile)) {
body.put("AccessLogFile", request.accessLogFile);
}
if (!com.aliyun.teautil.Common.isUnset(request.accessLogFormat)) {
body.put("AccessLogFormat", request.accessLogFormat);
}
if (!com.aliyun.teautil.Common.isUnset(request.accessLogProject)) {
body.put("AccessLogProject", request.accessLogProject);
}
if (!com.aliyun.teautil.Common.isUnset(request.accessLogServiceEnabled)) {
body.put("AccessLogServiceEnabled", request.accessLogServiceEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.accessLogServiceHost)) {
body.put("AccessLogServiceHost", request.accessLogServiceHost);
}
if (!com.aliyun.teautil.Common.isUnset(request.accessLogServicePort)) {
body.put("AccessLogServicePort", request.accessLogServicePort);
}
if (!com.aliyun.teautil.Common.isUnset(request.apiServerLoadBalancerSpec)) {
body.put("ApiServerLoadBalancerSpec", request.apiServerLoadBalancerSpec);
}
if (!com.aliyun.teautil.Common.isUnset(request.apiServerPublicEip)) {
body.put("ApiServerPublicEip", request.apiServerPublicEip);
}
if (!com.aliyun.teautil.Common.isUnset(request.auditProject)) {
body.put("AuditProject", request.auditProject);
}
if (!com.aliyun.teautil.Common.isUnset(request.autoRenew)) {
body.put("AutoRenew", request.autoRenew);
}
if (!com.aliyun.teautil.Common.isUnset(request.autoRenewPeriod)) {
body.put("AutoRenewPeriod", request.autoRenewPeriod);
}
if (!com.aliyun.teautil.Common.isUnset(request.CRAggregationEnabled)) {
body.put("CRAggregationEnabled", request.CRAggregationEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.chargeType)) {
body.put("ChargeType", request.chargeType);
}
if (!com.aliyun.teautil.Common.isUnset(request.clusterDomain)) {
body.put("ClusterDomain", request.clusterDomain);
}
if (!com.aliyun.teautil.Common.isUnset(request.clusterSpec)) {
body.put("ClusterSpec", request.clusterSpec);
}
if (!com.aliyun.teautil.Common.isUnset(request.configSourceEnabled)) {
body.put("ConfigSourceEnabled", request.configSourceEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.configSourceNacosID)) {
body.put("ConfigSourceNacosID", request.configSourceNacosID);
}
if (!com.aliyun.teautil.Common.isUnset(request.controlPlaneLogEnabled)) {
body.put("ControlPlaneLogEnabled", request.controlPlaneLogEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.controlPlaneLogProject)) {
body.put("ControlPlaneLogProject", request.controlPlaneLogProject);
}
if (!com.aliyun.teautil.Common.isUnset(request.customizedPrometheus)) {
body.put("CustomizedPrometheus", request.customizedPrometheus);
}
if (!com.aliyun.teautil.Common.isUnset(request.customizedZipkin)) {
body.put("CustomizedZipkin", request.customizedZipkin);
}
if (!com.aliyun.teautil.Common.isUnset(request.DNSProxyingEnabled)) {
body.put("DNSProxyingEnabled", request.DNSProxyingEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.dubboFilterEnabled)) {
body.put("DubboFilterEnabled", request.dubboFilterEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.edition)) {
body.put("Edition", request.edition);
}
if (!com.aliyun.teautil.Common.isUnset(request.enableAmbient)) {
body.put("EnableAmbient", request.enableAmbient);
}
if (!com.aliyun.teautil.Common.isUnset(request.enableAudit)) {
body.put("EnableAudit", request.enableAudit);
}
if (!com.aliyun.teautil.Common.isUnset(request.enableCRHistory)) {
body.put("EnableCRHistory", request.enableCRHistory);
}
if (!com.aliyun.teautil.Common.isUnset(request.enableSDSServer)) {
body.put("EnableSDSServer", request.enableSDSServer);
}
if (!com.aliyun.teautil.Common.isUnset(request.excludeIPRanges)) {
body.put("ExcludeIPRanges", request.excludeIPRanges);
}
if (!com.aliyun.teautil.Common.isUnset(request.excludeInboundPorts)) {
body.put("ExcludeInboundPorts", request.excludeInboundPorts);
}
if (!com.aliyun.teautil.Common.isUnset(request.excludeOutboundPorts)) {
body.put("ExcludeOutboundPorts", request.excludeOutboundPorts);
}
if (!com.aliyun.teautil.Common.isUnset(request.existingCaCert)) {
body.put("ExistingCaCert", request.existingCaCert);
}
if (!com.aliyun.teautil.Common.isUnset(request.existingCaKey)) {
body.put("ExistingCaKey", request.existingCaKey);
}
if (!com.aliyun.teautil.Common.isUnset(request.existingCaType)) {
body.put("ExistingCaType", request.existingCaType);
}
if (!com.aliyun.teautil.Common.isUnset(request.existingRootCaCert)) {
body.put("ExistingRootCaCert", request.existingRootCaCert);
}
if (!com.aliyun.teautil.Common.isUnset(request.existingRootCaKey)) {
body.put("ExistingRootCaKey", request.existingRootCaKey);
}
if (!com.aliyun.teautil.Common.isUnset(request.filterGatewayClusterConfig)) {
body.put("FilterGatewayClusterConfig", request.filterGatewayClusterConfig);
}
if (!com.aliyun.teautil.Common.isUnset(request.gatewayAPIEnabled)) {
body.put("GatewayAPIEnabled", request.gatewayAPIEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.guestCluster)) {
body.put("GuestCluster", request.guestCluster);
}
if (!com.aliyun.teautil.Common.isUnset(request.includeIPRanges)) {
body.put("IncludeIPRanges", request.includeIPRanges);
}
if (!com.aliyun.teautil.Common.isUnset(request.istioVersion)) {
body.put("IstioVersion", request.istioVersion);
}
if (!com.aliyun.teautil.Common.isUnset(request.kialiEnabled)) {
body.put("KialiEnabled", request.kialiEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.localityLBConf)) {
body.put("LocalityLBConf", request.localityLBConf);
}
if (!com.aliyun.teautil.Common.isUnset(request.localityLoadBalancing)) {
body.put("LocalityLoadBalancing", request.localityLoadBalancing);
}
if (!com.aliyun.teautil.Common.isUnset(request.MSEEnabled)) {
body.put("MSEEnabled", request.MSEEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.multiBufferEnabled)) {
body.put("MultiBufferEnabled", request.multiBufferEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.multiBufferPollDelay)) {
body.put("MultiBufferPollDelay", request.multiBufferPollDelay);
}
if (!com.aliyun.teautil.Common.isUnset(request.mysqlFilterEnabled)) {
body.put("MysqlFilterEnabled", request.mysqlFilterEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.name)) {
body.put("Name", request.name);
}
if (!com.aliyun.teautil.Common.isUnset(request.OPALimitCPU)) {
body.put("OPALimitCPU", request.OPALimitCPU);
}
if (!com.aliyun.teautil.Common.isUnset(request.OPALimitMemory)) {
body.put("OPALimitMemory", request.OPALimitMemory);
}
if (!com.aliyun.teautil.Common.isUnset(request.OPALogLevel)) {
body.put("OPALogLevel", request.OPALogLevel);
}
if (!com.aliyun.teautil.Common.isUnset(request.OPARequestCPU)) {
body.put("OPARequestCPU", request.OPARequestCPU);
}
if (!com.aliyun.teautil.Common.isUnset(request.OPARequestMemory)) {
body.put("OPARequestMemory", request.OPARequestMemory);
}
if (!com.aliyun.teautil.Common.isUnset(request.opaEnabled)) {
body.put("OpaEnabled", request.opaEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.openAgentPolicy)) {
body.put("OpenAgentPolicy", request.openAgentPolicy);
}
if (!com.aliyun.teautil.Common.isUnset(request.period)) {
body.put("Period", request.period);
}
if (!com.aliyun.teautil.Common.isUnset(request.pilotLoadBalancerSpec)) {
body.put("PilotLoadBalancerSpec", request.pilotLoadBalancerSpec);
}
if (!com.aliyun.teautil.Common.isUnset(request.prometheusUrl)) {
body.put("PrometheusUrl", request.prometheusUrl);
}
if (!com.aliyun.teautil.Common.isUnset(request.proxyLimitCPU)) {
body.put("ProxyLimitCPU", request.proxyLimitCPU);
}
if (!com.aliyun.teautil.Common.isUnset(request.proxyLimitMemory)) {
body.put("ProxyLimitMemory", request.proxyLimitMemory);
}
if (!com.aliyun.teautil.Common.isUnset(request.proxyRequestCPU)) {
body.put("ProxyRequestCPU", request.proxyRequestCPU);
}
if (!com.aliyun.teautil.Common.isUnset(request.proxyRequestMemory)) {
body.put("ProxyRequestMemory", request.proxyRequestMemory);
}
if (!com.aliyun.teautil.Common.isUnset(request.redisFilterEnabled)) {
body.put("RedisFilterEnabled", request.redisFilterEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {
body.put("RegionId", request.regionId);
}
if (!com.aliyun.teautil.Common.isUnset(request.telemetry)) {
body.put("Telemetry", request.telemetry);
}
if (!com.aliyun.teautil.Common.isUnset(request.thriftFilterEnabled)) {
body.put("ThriftFilterEnabled", request.thriftFilterEnabled);
}
if (!com.aliyun.teautil.Common.isUnset(request.traceSampling)) {
body.put("TraceSampling", request.traceSampling);
}
if (!com.aliyun.teautil.Common.isUnset(request.tracing)) {
body.put("Tracing", request.tracing);
}
if (!com.aliyun.teautil.Common.isUnset(request.useExistingCA)) {
body.put("UseExistingCA", request.useExistingCA);
}
if (!com.aliyun.teautil.Common.isUnset(request.vSwitches)) {
body.put("VSwitches", request.vSwitches);
}
if (!com.aliyun.teautil.Common.isUnset(request.vpcId)) {
body.put("VpcId", request.vpcId);
}
if (!com.aliyun.teautil.Common.isUnset(request.webAssemblyFilterEnabled)) {
body.put("WebAssemblyFilterEnabled", request.webAssemblyFilterEnabled);
}
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
new TeaPair("query", com.aliyun.openapiutil.Client.query(query)),
new TeaPair("body", com.aliyun.openapiutil.Client.parseToMap(body))
));
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
new TeaPair("action", "CreateServiceMesh"),
new TeaPair("version", "2020-01-11"),
new TeaPair("protocol", "HTTPS"),
new TeaPair("pathname", "/"),
new TeaPair("method", "POST"),
new TeaPair("authType", "AK"),
new TeaPair("style", "RPC"),
new TeaPair("reqBodyType", "formData"),
new TeaPair("bodyType", "json")
));
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateServiceMeshResponse());
}