public static DeleteInstanceResponse Unmarshall(UnmarshallerContext context) { DeleteInstanceResponse deleteInstanceResponse = new DeleteInstanceResponse(); deleteInstanceResponse.HttpResponse = context.HttpResponse; deleteInstanceResponse.RequestId = context.StringValue("DeleteInstance.RequestId"); return deleteInstanceResponse; }
public static DeleteInstanceResponse Unmarshall(UnmarshallerContext context) { DeleteInstanceResponse deleteInstanceResponse = new DeleteInstanceResponse(); deleteInstanceResponse.HttpResponse = context.HttpResponse; deleteInstanceResponse.RequestId = context.StringValue("DeleteInstance.RequestId"); return(deleteInstanceResponse); }
public void TestDeleteInstance() { var vmClient = GetVmClient(); DeleteInstanceRequest request = new DeleteInstanceRequest(); request.RegionId = "cn-north-1"; request.InstanceId = "i-zjjyo8hz89"; DeleteInstanceResponse response = vmClient.DeleteInstance(request); Console.WriteLine(JsonConvert.SerializeObject(response)); }
public void TestDeleteInstance() { var vmClient = GetVmClient(); DeleteInstanceRequest request = new DeleteInstanceRequest(); request.RegionId = "cn-north-1"; request.InstanceId = "i-ifz5os5gkj"; DeleteInstanceResponse response = vmClient.DeleteInstance(request).Result; _output.WriteLine(JsonConvert.SerializeObject(response)); }
public static DeleteInstanceResponse Unmarshall(UnmarshallerContext _ctx) { DeleteInstanceResponse deleteInstanceResponse = new DeleteInstanceResponse(); deleteInstanceResponse.HttpResponse = _ctx.HttpResponse; deleteInstanceResponse.RequestId = _ctx.StringValue("DeleteInstance.RequestId"); deleteInstanceResponse.Success = _ctx.BooleanValue("DeleteInstance.Success"); deleteInstanceResponse.ErrorMessage = _ctx.StringValue("DeleteInstance.ErrorMessage"); deleteInstanceResponse.ErrorCode = _ctx.StringValue("DeleteInstance.ErrorCode"); return(deleteInstanceResponse); }
public static DeleteInstanceResponse Unmarshall(UnmarshallerContext context) { DeleteInstanceResponse deleteInstanceResponse = new DeleteInstanceResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DeleteInstance.RequestId"), InstanceId = context.StringValue("DeleteInstance.InstanceId"), RegionId = context.StringValue("DeleteInstance.RegionId") }; return(deleteInstanceResponse); }
public static DeleteInstanceResponse Unmarshall(UnmarshallerContext context) { DeleteInstanceResponse deleteInstanceResponse = new DeleteInstanceResponse(); deleteInstanceResponse.HttpResponse = context.HttpResponse; deleteInstanceResponse.RequestId = context.StringValue("DeleteInstance.RequestId"); deleteInstanceResponse.Success = context.BooleanValue("DeleteInstance.Success"); deleteInstanceResponse.Code = context.StringValue("DeleteInstance.Code"); deleteInstanceResponse.Message = context.StringValue("DeleteInstance.Message"); deleteInstanceResponse.HttpStatusCode = context.IntegerValue("DeleteInstance.HttpStatusCode"); return(deleteInstanceResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteInstanceResponse response = new DeleteInstanceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("operations", targetDepth)) { var unmarshaller = new ListUnmarshaller <Operation, OperationUnmarshaller>(OperationUnmarshaller.Instance); response.Operations = unmarshaller.Unmarshall(context); continue; } } return(response); }
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteInstanceResponse response = new DeleteInstanceResponse(); return(response); }