changes to WSDL with new Autoscaler API operations
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/f7f38785 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/f7f38785 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/f7f38785 Branch: refs/heads/master Commit: f7f38785c17cae572372a414add2110f3a3b9ef5 Parents: 486a00b Author: Nirmal Fernando <[email protected]> Authored: Wed Dec 11 11:55:34 2013 +0530 Committer: Nirmal Fernando <[email protected]> Committed: Wed Dec 11 13:41:42 2013 +0530 ---------------------------------------------------------------------- .../src/main/resources/AutoScalerService.wsdl | 162 +++++++++++++++---- 1 file changed, 133 insertions(+), 29 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f7f38785/service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources/AutoScalerService.wsdl ---------------------------------------------------------------------- diff --git a/service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources/AutoScalerService.wsdl b/service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources/AutoScalerService.wsdl index cdf109b..24f3a3d 100644 --- a/service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources/AutoScalerService.wsdl +++ b/service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources/AutoScalerService.wsdl @@ -168,10 +168,40 @@ </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="checkLBExistence"> + <xs:element name="checkLBExistenceAgainstPolicy"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="lbClusterId" nillable="true" type="xs:string"/> + <xs:element minOccurs="0" name="deploymentPolicyId" nillable="true" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="checkDefaultLBExistenceAgainstPolicy"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="deploymentPolicyId" nillable="true" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="checkDefaultLBExistenceAgainstPolicyResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" type="xs:boolean"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="checkClusterLBExistenceAgainstPolicy"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="clusterId" nillable="true" type="xs:string"/> + <xs:element minOccurs="0" name="deploymentPolicyId" nillable="true" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="checkClusterLBExistenceAgainstPolicyResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" type="xs:boolean"/> </xs:sequence> </xs:complexType> </xs:element> @@ -362,12 +392,6 @@ <wsdl:message name="AutoScalerServicePartitionValidationException"> <wsdl:part name="parameters" element="ns:AutoScalerServicePartitionValidationException"/> </wsdl:message> - <wsdl:message name="checkLBExistenceRequest"> - <wsdl:part name="parameters" element="ns:checkLBExistence"/> - </wsdl:message> - <wsdl:message name="AutoScalerServiceNonExistingLBException"> - <wsdl:part name="parameters" element="ns:AutoScalerServiceNonExistingLBException"/> - </wsdl:message> <wsdl:message name="getAllAvailablePartitionsRequest"> <wsdl:part name="parameters" element="ns:getAllAvailablePartitions"/> </wsdl:message> @@ -380,6 +404,18 @@ <wsdl:message name="getAutoscalingPolicyResponse"> <wsdl:part name="parameters" element="ns:getAutoscalingPolicyResponse"/> </wsdl:message> + <wsdl:message name="checkClusterLBExistenceAgainstPolicyRequest"> + <wsdl:part name="parameters" element="ns:checkClusterLBExistenceAgainstPolicy"/> + </wsdl:message> + <wsdl:message name="checkClusterLBExistenceAgainstPolicyResponse"> + <wsdl:part name="parameters" element="ns:checkClusterLBExistenceAgainstPolicyResponse"/> + </wsdl:message> + <wsdl:message name="checkDefaultLBExistenceAgainstPolicyRequest"> + <wsdl:part name="parameters" element="ns:checkDefaultLBExistenceAgainstPolicy"/> + </wsdl:message> + <wsdl:message name="checkDefaultLBExistenceAgainstPolicyResponse"> + <wsdl:part name="parameters" element="ns:checkDefaultLBExistenceAgainstPolicyResponse"/> + </wsdl:message> <wsdl:message name="getPartitionRequest"> <wsdl:part name="parameters" element="ns:getPartition"/> </wsdl:message> @@ -404,6 +440,12 @@ <wsdl:message name="getPartitionGroupsResponse"> <wsdl:part name="parameters" element="ns:getPartitionGroupsResponse"/> </wsdl:message> + <wsdl:message name="checkLBExistenceAgainstPolicyRequest"> + <wsdl:part name="parameters" element="ns:checkLBExistenceAgainstPolicy"/> + </wsdl:message> + <wsdl:message name="AutoScalerServiceNonExistingLBException"> + <wsdl:part name="parameters" element="ns:AutoScalerServiceNonExistingLBException"/> + </wsdl:message> <wsdl:portType name="AutoScalerServicePortType"> <wsdl:operation name="getPartitionsOfDeploymentPolicy"> <wsdl:input message="ns:getPartitionsOfDeploymentPolicyRequest" wsaw:Action="urn:getPartitionsOfDeploymentPolicy"/> @@ -434,10 +476,6 @@ <wsdl:output message="ns:getValidDeploymentPoliciesforCartridgeResponse" wsaw:Action="urn:getValidDeploymentPoliciesforCartridgeResponse"/> <wsdl:fault message="ns:AutoScalerServicePartitionValidationException" name="AutoScalerServicePartitionValidationException" wsaw:Action="urn:getValidDeploymentPoliciesforCartridgeAutoScalerServicePartitionValidationException"/> </wsdl:operation> - <wsdl:operation name="checkLBExistence"> - <wsdl:input message="ns:checkLBExistenceRequest" wsaw:Action="urn:checkLBExistence"/> - <wsdl:fault message="ns:AutoScalerServiceNonExistingLBException" name="AutoScalerServiceNonExistingLBException" wsaw:Action="urn:checkLBExistenceAutoScalerServiceNonExistingLBException"/> - </wsdl:operation> <wsdl:operation name="getAllAvailablePartitions"> <wsdl:input message="ns:getAllAvailablePartitionsRequest" wsaw:Action="urn:getAllAvailablePartitions"/> <wsdl:output message="ns:getAllAvailablePartitionsResponse" wsaw:Action="urn:getAllAvailablePartitionsResponse"/> @@ -446,6 +484,14 @@ <wsdl:input message="ns:getAutoscalingPolicyRequest" wsaw:Action="urn:getAutoscalingPolicy"/> <wsdl:output message="ns:getAutoscalingPolicyResponse" wsaw:Action="urn:getAutoscalingPolicyResponse"/> </wsdl:operation> + <wsdl:operation name="checkClusterLBExistenceAgainstPolicy"> + <wsdl:input message="ns:checkClusterLBExistenceAgainstPolicyRequest" wsaw:Action="urn:checkClusterLBExistenceAgainstPolicy"/> + <wsdl:output message="ns:checkClusterLBExistenceAgainstPolicyResponse" wsaw:Action="urn:checkClusterLBExistenceAgainstPolicyResponse"/> + </wsdl:operation> + <wsdl:operation name="checkDefaultLBExistenceAgainstPolicy"> + <wsdl:input message="ns:checkDefaultLBExistenceAgainstPolicyRequest" wsaw:Action="urn:checkDefaultLBExistenceAgainstPolicy"/> + <wsdl:output message="ns:checkDefaultLBExistenceAgainstPolicyResponse" wsaw:Action="urn:checkDefaultLBExistenceAgainstPolicyResponse"/> + </wsdl:operation> <wsdl:operation name="getPartition"> <wsdl:input message="ns:getPartitionRequest" wsaw:Action="urn:getPartition"/> <wsdl:output message="ns:getPartitionResponse" wsaw:Action="urn:getPartitionResponse"/> @@ -462,6 +508,10 @@ <wsdl:input message="ns:getPartitionGroupsRequest" wsaw:Action="urn:getPartitionGroups"/> <wsdl:output message="ns:getPartitionGroupsResponse" wsaw:Action="urn:getPartitionGroupsResponse"/> </wsdl:operation> + <wsdl:operation name="checkLBExistenceAgainstPolicy"> + <wsdl:input message="ns:checkLBExistenceAgainstPolicyRequest" wsaw:Action="urn:checkLBExistenceAgainstPolicy"/> + <wsdl:fault message="ns:AutoScalerServiceNonExistingLBException" name="AutoScalerServiceNonExistingLBException" wsaw:Action="urn:checkLBExistenceAgainstPolicyAutoScalerServiceNonExistingLBException"/> + </wsdl:operation> </wsdl:portType> <wsdl:binding name="AutoScalerServiceSoap11Binding" type="ns:AutoScalerServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> @@ -540,17 +590,26 @@ <soap:body use="literal"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="checkLBExistence"> - <soap:operation soapAction="urn:checkLBExistence" style="document"/> + <wsdl:operation name="getAutoscalingPolicy"> + <soap:operation soapAction="urn:getAutoscalingPolicy" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> - <wsdl:fault name="AutoScalerServiceNonExistingLBException"> - <soap:fault use="literal" name="AutoScalerServiceNonExistingLBException"/> - </wsdl:fault> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> </wsdl:operation> - <wsdl:operation name="getAutoscalingPolicy"> - <soap:operation soapAction="urn:getAutoscalingPolicy" style="document"/> + <wsdl:operation name="checkDefaultLBExistenceAgainstPolicy"> + <soap:operation soapAction="urn:checkDefaultLBExistenceAgainstPolicy" style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="checkClusterLBExistenceAgainstPolicy"> + <soap:operation soapAction="urn:checkClusterLBExistenceAgainstPolicy" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> @@ -594,6 +653,15 @@ <soap:body use="literal"/> </wsdl:output> </wsdl:operation> + <wsdl:operation name="checkLBExistenceAgainstPolicy"> + <soap:operation soapAction="urn:checkLBExistenceAgainstPolicy" style="document"/> + <wsdl:input> + <soap:body use="literal"/> + </wsdl:input> + <wsdl:fault name="AutoScalerServiceNonExistingLBException"> + <soap:fault use="literal" name="AutoScalerServiceNonExistingLBException"/> + </wsdl:fault> + </wsdl:operation> </wsdl:binding> <wsdl:binding name="AutoScalerServiceSoap12Binding" type="ns:AutoScalerServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> @@ -672,17 +740,26 @@ <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="checkLBExistence"> - <soap12:operation soapAction="urn:checkLBExistence" style="document"/> + <wsdl:operation name="getAutoscalingPolicy"> + <soap12:operation soapAction="urn:getAutoscalingPolicy" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> - <wsdl:fault name="AutoScalerServiceNonExistingLBException"> - <soap12:fault use="literal" name="AutoScalerServiceNonExistingLBException"/> - </wsdl:fault> + <wsdl:output> + <soap12:body use="literal"/> + </wsdl:output> </wsdl:operation> - <wsdl:operation name="getAutoscalingPolicy"> - <soap12:operation soapAction="urn:getAutoscalingPolicy" style="document"/> + <wsdl:operation name="checkDefaultLBExistenceAgainstPolicy"> + <soap12:operation soapAction="urn:checkDefaultLBExistenceAgainstPolicy" style="document"/> + <wsdl:input> + <soap12:body use="literal"/> + </wsdl:input> + <wsdl:output> + <soap12:body use="literal"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="checkClusterLBExistenceAgainstPolicy"> + <soap12:operation soapAction="urn:checkClusterLBExistenceAgainstPolicy" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> @@ -726,6 +803,15 @@ <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> + <wsdl:operation name="checkLBExistenceAgainstPolicy"> + <soap12:operation soapAction="urn:checkLBExistenceAgainstPolicy" style="document"/> + <wsdl:input> + <soap12:body use="literal"/> + </wsdl:input> + <wsdl:fault name="AutoScalerServiceNonExistingLBException"> + <soap12:fault use="literal" name="AutoScalerServiceNonExistingLBException"/> + </wsdl:fault> + </wsdl:operation> </wsdl:binding> <wsdl:binding name="AutoScalerServiceHttpBinding" type="ns:AutoScalerServicePortType"> <http:binding verb="POST"/> @@ -801,14 +887,26 @@ <mime:content type="text/xml" part="parameters"/> </wsdl:output> </wsdl:operation> - <wsdl:operation name="checkLBExistence"> - <http:operation location="checkLBExistence"/> + <wsdl:operation name="getAutoscalingPolicy"> + <http:operation location="getAutoscalingPolicy"/> + <wsdl:input> + <mime:content type="text/xml" part="parameters"/> + </wsdl:input> + <wsdl:output> + <mime:content type="text/xml" part="parameters"/> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="checkDefaultLBExistenceAgainstPolicy"> + <http:operation location="checkDefaultLBExistenceAgainstPolicy"/> <wsdl:input> <mime:content type="text/xml" part="parameters"/> </wsdl:input> + <wsdl:output> + <mime:content type="text/xml" part="parameters"/> + </wsdl:output> </wsdl:operation> - <wsdl:operation name="getAutoscalingPolicy"> - <http:operation location="getAutoscalingPolicy"/> + <wsdl:operation name="checkClusterLBExistenceAgainstPolicy"> + <http:operation location="checkClusterLBExistenceAgainstPolicy"/> <wsdl:input> <mime:content type="text/xml" part="parameters"/> </wsdl:input> @@ -852,6 +950,12 @@ <mime:content type="text/xml" part="parameters"/> </wsdl:output> </wsdl:operation> + <wsdl:operation name="checkLBExistenceAgainstPolicy"> + <http:operation location="checkLBExistenceAgainstPolicy"/> + <wsdl:input> + <mime:content type="text/xml" part="parameters"/> + </wsdl:input> + </wsdl:operation> </wsdl:binding> <wsdl:service name="AutoScalerService"> <wsdl:port name="AutoScalerServiceHttpSoap11Endpoint" binding="ns:AutoScalerServiceSoap11Binding">
