/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteApplicationResponse response = new DeleteApplicationResponse(); 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) { DeleteApplicationResponse response = new DeleteApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("DeleteApplicationResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
/// <summary> /// <para> Deletes the specified application along with all associated versions and configurations. </para> <para><b>NOTE:</b>You cannot delete /// an application that has a running environment. </para> /// </summary> /// /// <param name="deleteApplicationRequest">Container for the necessary parameters to execute the DeleteApplication service method on /// AmazonElasticBeanstalk.</param> /// public DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest deleteApplicationRequest) { IRequest <DeleteApplicationRequest> request = new DeleteApplicationRequestMarshaller().Marshall(deleteApplicationRequest); DeleteApplicationResponse response = Invoke <DeleteApplicationRequest, DeleteApplicationResponse> (request, this.signer, DeleteApplicationResponseUnmarshaller.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) { DeleteApplicationResponse response = new DeleteApplicationResponse(); return response; }
public async Task <DeleteApplicationResponse> Delete(DeleteApplicationRequest o) { var result = new DeleteApplicationResponse(o.RequestId); result.Deleted = await Server.Delete(o.Id); return(result); }
/// <summary> /// 删除资源空间 /// </summary> public DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest deleteApplicationRequest) { Dictionary <string, string> urlParam = new Dictionary <string, string>(); urlParam.Add("app_id", deleteApplicationRequest.AppId.ToString()); string urlPath = HttpUtils.AddUrlPath("/v5/iot/{project_id}/apps/{app_id}", urlParam); SdkRequest request = HttpUtils.InitSdkRequest(urlPath, deleteApplicationRequest); HttpResponseMessage response = DoHttpRequestSync("DELETE", request); DeleteApplicationResponse deleteApplicationResponse = JsonUtils.DeSerializeNull <DeleteApplicationResponse>(response); return(deleteApplicationResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteApplicationResponse response = new DeleteApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ApplicationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ApplicationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EnvironmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EnvironmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastUpdatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastUpdatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.State = unmarshaller.Unmarshall(context); continue; } } return(response); }
public static DeleteApplicationResponse Unmarshall(UnmarshallerContext _ctx) { DeleteApplicationResponse deleteApplicationResponse = new DeleteApplicationResponse(); deleteApplicationResponse.HttpResponse = _ctx.HttpResponse; deleteApplicationResponse.Code = _ctx.StringValue("DeleteApplication.Code"); deleteApplicationResponse.Message = _ctx.StringValue("DeleteApplication.Message"); deleteApplicationResponse.RequestId = _ctx.StringValue("DeleteApplication.RequestId"); deleteApplicationResponse.Success = _ctx.BooleanValue("DeleteApplication.Success"); deleteApplicationResponse.ErrorCode = _ctx.StringValue("DeleteApplication.ErrorCode"); deleteApplicationResponse.TraceId = _ctx.StringValue("DeleteApplication.TraceId"); DeleteApplicationResponse.DeleteApplication_Data data = new DeleteApplicationResponse.DeleteApplication_Data(); data.ChangeOrderId = _ctx.StringValue("DeleteApplication.Data.ChangeOrderId"); deleteApplicationResponse.Data = data; return(deleteApplicationResponse); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DeleteApplicationResponse response = new DeleteApplicationResponse(); 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, DeleteApplicationResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteApplicationResponse response = new DeleteApplicationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("application", targetDepth)) { var unmarshaller = ApplicationSummaryUnmarshaller.Instance; response.Application = unmarshaller.Unmarshall(context); continue; } } return(response); }