/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeProjectResponse response = new DescribeProjectResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("portalId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PortalId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectCreationDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ProjectCreationDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectLastUpdateDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.ProjectLastUpdateDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectName = unmarshaller.Unmarshall(context); continue; } } 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) { DescribeProjectResponse response = new DescribeProjectResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("details", targetDepth)) { var unmarshaller = ProjectDetailsUnmarshaller.Instance; response.Details = unmarshaller.Unmarshall(context); continue; } } return(response); }
public static DescribeProjectResponse Unmarshall(UnmarshallerContext context) { DescribeProjectResponse describeProjectResponse = new DescribeProjectResponse(); describeProjectResponse.HttpResponse = context.HttpResponse; describeProjectResponse.RequestId = context.StringValue("DescribeProject.RequestId"); describeProjectResponse.ProjectType = context.StringValue("DescribeProject.ProjectType"); describeProjectResponse.ProjectId = context.StringValue("DescribeProject.ProjectId"); describeProjectResponse.ProjectName = context.StringValue("DescribeProject.ProjectName"); describeProjectResponse.CreateTime = context.LongValue("DescribeProject.CreateTime"); describeProjectResponse.DeployTime = context.LongValue("DescribeProject.DeployTime"); describeProjectResponse.ModelId = context.StringValue("DescribeProject.ModelId"); describeProjectResponse.ModelName = context.StringValue("DescribeProject.ModelName"); describeProjectResponse.QuestionCount = context.IntegerValue("DescribeProject.QuestionCount"); describeProjectResponse.DataStatus = context.StringValue("DescribeProject.DataStatus"); describeProjectResponse.TestServiceStatus = context.StringValue("DescribeProject.TestServiceStatus"); describeProjectResponse.OnlineServiceStatus = context.StringValue("DescribeProject.OnlineServiceStatus"); describeProjectResponse.DeployAvailable = context.StringValue("DescribeProject.DeployAvailable"); return(describeProjectResponse); }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeProjectResponse response = new DescribeProjectResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreateDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreateDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DatasetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DatasetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.LastModifiedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("LastModifiedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.LastModifiedDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OpenDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.OpenDate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OpenedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.OpenedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RecipeName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RecipeName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ResourceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RoleArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.RoleArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Sample", targetDepth)) { var unmarshaller = SampleUnmarshaller.Instance; response.Sample = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SessionStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SessionStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller <string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } 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) { DescribeProjectResponse response = new DescribeProjectResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("clientRequestToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ClientRequestToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdTimeStamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreatedTimeStamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("projectTemplateId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectTemplateId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("stackId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.StackId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = ProjectStatusUnmarshaller.Instance; response.Status = unmarshaller.Unmarshall(context); continue; } } 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) { DescribeProjectResponse response = new DescribeProjectResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CreatedBy", targetDepth)) { var unmarshaller = UserContextUnmarshaller.Instance; response.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; response.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProjectArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProjectDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProjectId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProjectName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ProjectStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ProjectStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceCatalogProvisionedProductDetails", targetDepth)) { var unmarshaller = ServiceCatalogProvisionedProductDetailsUnmarshaller.Instance; response.ServiceCatalogProvisionedProductDetails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceCatalogProvisioningDetails", targetDepth)) { var unmarshaller = ServiceCatalogProvisioningDetailsUnmarshaller.Instance; response.ServiceCatalogProvisioningDetails = unmarshaller.Unmarshall(context); continue; } } return(response); }