/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DeletePolicyResponse response = new DeletePolicyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("DeletePolicyResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
/// <summary> /// <para>Deletes a policy created by PutScalingPolicy </para> /// </summary> /// /// <param name="deletePolicyRequest">Container for the necessary parameters to execute the DeletePolicy service method on /// AmazonAutoScaling.</param> /// public DeletePolicyResponse DeletePolicy(DeletePolicyRequest deletePolicyRequest) { IRequest <DeletePolicyRequest> request = new DeletePolicyRequestMarshaller().Marshall(deletePolicyRequest); DeletePolicyResponse response = Invoke <DeletePolicyRequest, DeletePolicyResponse> (request, this.signer, DeletePolicyResponseUnmarshaller.GetInstance()); return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeletePolicyResponse response = new DeletePolicyResponse(); return(response); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DeletePolicyResponse response = new DeletePolicyResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if(context.TestExpression("DeletePolicyResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return response; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeletePolicyResponse response = new DeletePolicyResponse(); return response; }
public static DeletePolicyResponse Unmarshall(UnmarshallerContext context) { DeletePolicyResponse deletePolicyResponse = new DeletePolicyResponse(); deletePolicyResponse.HttpResponse = context.HttpResponse; deletePolicyResponse.RequestId = context.StringValue("DeletePolicy.RequestId"); return(deletePolicyResponse); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DeletePolicyResponse response = new DeletePolicyResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, DeletePolicyResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; }
private static void UnmarshallResult(XmlUnmarshallerContext context, DeletePolicyResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) targetDepth += 2; while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; }