public static DescribeApiHistoryResponse Unmarshall(UnmarshallerContext context) { DescribeApiHistoryResponse describeApiHistoryResponse = new DescribeApiHistoryResponse(); describeApiHistoryResponse.HttpResponse = context.HttpResponse; describeApiHistoryResponse.RequestId = context.StringValue("DescribeApiHistory.RequestId"); describeApiHistoryResponse.RegionId = context.StringValue("DescribeApiHistory.RegionId"); describeApiHistoryResponse.GroupId = context.StringValue("DescribeApiHistory.GroupId"); describeApiHistoryResponse.GroupName = context.StringValue("DescribeApiHistory.GroupName"); describeApiHistoryResponse.StageName = context.StringValue("DescribeApiHistory.StageName"); describeApiHistoryResponse.ApiId = context.StringValue("DescribeApiHistory.ApiId"); describeApiHistoryResponse.ApiName = context.StringValue("DescribeApiHistory.ApiName"); describeApiHistoryResponse.Description = context.StringValue("DescribeApiHistory.Description"); describeApiHistoryResponse.HistoryVersion = context.StringValue("DescribeApiHistory.HistoryVersion"); describeApiHistoryResponse.Status = context.StringValue("DescribeApiHistory.Status"); describeApiHistoryResponse.Visibility = context.StringValue("DescribeApiHistory.Visibility"); describeApiHistoryResponse.AuthType = context.StringValue("DescribeApiHistory.AuthType"); describeApiHistoryResponse.ResultType = context.StringValue("DescribeApiHistory.ResultType"); describeApiHistoryResponse.ResultSample = context.StringValue("DescribeApiHistory.ResultSample"); describeApiHistoryResponse.FailResultSample = context.StringValue("DescribeApiHistory.FailResultSample"); describeApiHistoryResponse.DeployedTime = context.StringValue("DescribeApiHistory.DeployedTime"); DescribeApiHistoryResponse.RequestConfig_ requestConfig = new DescribeApiHistoryResponse.RequestConfig_(); requestConfig.RequestProtocol = context.StringValue("DescribeApiHistory.RequestConfig.RequestProtocol"); requestConfig.RequestHttpMethod = context.StringValue("DescribeApiHistory.RequestConfig.RequestHttpMethod"); requestConfig.RequestPath = context.StringValue("DescribeApiHistory.RequestConfig.RequestPath"); requestConfig.BodyFormat = context.StringValue("DescribeApiHistory.RequestConfig.BodyFormat"); requestConfig.PostBodyDescription = context.StringValue("DescribeApiHistory.RequestConfig.PostBodyDescription"); describeApiHistoryResponse.RequestConfig = requestConfig; DescribeApiHistoryResponse.ServiceConfig_ serviceConfig = new DescribeApiHistoryResponse.ServiceConfig_(); serviceConfig.ServiceProtocol = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceProtocol"); serviceConfig.ServiceAddress = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceAddress"); serviceConfig.ServiceHttpMethod = context.StringValue("DescribeApiHistory.ServiceConfig.ServiceHttpMethod"); serviceConfig.ServicePath = context.StringValue("DescribeApiHistory.ServiceConfig.ServicePath"); serviceConfig.ServiceTimeout = context.IntegerValue("DescribeApiHistory.ServiceConfig.ServiceTimeout"); describeApiHistoryResponse.ServiceConfig = serviceConfig; List<DescribeApiHistoryResponse.ErrorCodeSample> errorCodeSamples = new List<DescribeApiHistoryResponse.ErrorCodeSample>(); for (int i = 0; i < context.Length("DescribeApiHistory.ErrorCodeSamples.Length"); i++) { DescribeApiHistoryResponse.ErrorCodeSample errorCodeSample = new DescribeApiHistoryResponse.ErrorCodeSample(); errorCodeSample.Code = context.StringValue("DescribeApiHistory.ErrorCodeSamples["+ i +"].Code"); errorCodeSample.Message = context.StringValue("DescribeApiHistory.ErrorCodeSamples["+ i +"].Message"); errorCodeSample.Description = context.StringValue("DescribeApiHistory.ErrorCodeSamples["+ i +"].Description"); errorCodeSamples.Add(errorCodeSample); } describeApiHistoryResponse.ErrorCodeSamples = errorCodeSamples; List<DescribeApiHistoryResponse.SystemParameter> systemParameters = new List<DescribeApiHistoryResponse.SystemParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.SystemParameters.Length"); i++) { DescribeApiHistoryResponse.SystemParameter systemParameter = new DescribeApiHistoryResponse.SystemParameter(); systemParameter.ParameterName = context.StringValue("DescribeApiHistory.SystemParameters["+ i +"].ParameterName"); systemParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.SystemParameters["+ i +"].ServiceParameterName"); systemParameter.Location = context.StringValue("DescribeApiHistory.SystemParameters["+ i +"].Location"); systemParameter.DemoValue = context.StringValue("DescribeApiHistory.SystemParameters["+ i +"].DemoValue"); systemParameter.Description = context.StringValue("DescribeApiHistory.SystemParameters["+ i +"].Description"); systemParameters.Add(systemParameter); } describeApiHistoryResponse.SystemParameters = systemParameters; List<DescribeApiHistoryResponse.ConstantParameter> constantParameters = new List<DescribeApiHistoryResponse.ConstantParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.ConstantParameters.Length"); i++) { DescribeApiHistoryResponse.ConstantParameter constantParameter = new DescribeApiHistoryResponse.ConstantParameter(); constantParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.ConstantParameters["+ i +"].ServiceParameterName"); constantParameter.ConstantValue = context.StringValue("DescribeApiHistory.ConstantParameters["+ i +"].ConstantValue"); constantParameter.Location = context.StringValue("DescribeApiHistory.ConstantParameters["+ i +"].Location"); constantParameter.Description = context.StringValue("DescribeApiHistory.ConstantParameters["+ i +"].Description"); constantParameters.Add(constantParameter); } describeApiHistoryResponse.ConstantParameters = constantParameters; List<DescribeApiHistoryResponse.RequestParameter> requestParameters = new List<DescribeApiHistoryResponse.RequestParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.RequestParameters.Length"); i++) { DescribeApiHistoryResponse.RequestParameter requestParameter = new DescribeApiHistoryResponse.RequestParameter(); requestParameter.ApiParameterName = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].ApiParameterName"); requestParameter.Location = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].Location"); requestParameter.ParameterType = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].ParameterType"); requestParameter.Required = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].Required"); requestParameter.DefaultValue = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].DefaultValue"); requestParameter.DemoValue = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].DemoValue"); requestParameter.MaxValue = context.LongValue("DescribeApiHistory.RequestParameters["+ i +"].MaxValue"); requestParameter.MinValue = context.LongValue("DescribeApiHistory.RequestParameters["+ i +"].MinValue"); requestParameter.MaxLength = context.LongValue("DescribeApiHistory.RequestParameters["+ i +"].MaxLength"); requestParameter.MinLength = context.LongValue("DescribeApiHistory.RequestParameters["+ i +"].MinLength"); requestParameter.RegularExpression = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].RegularExpression"); requestParameter.JsonScheme = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].JsonScheme"); requestParameter.EnumValue = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].EnumValue"); requestParameter.DocShow = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].DocShow"); requestParameter.DocOrder = context.IntegerValue("DescribeApiHistory.RequestParameters["+ i +"].DocOrder"); requestParameter.Description = context.StringValue("DescribeApiHistory.RequestParameters["+ i +"].Description"); requestParameters.Add(requestParameter); } describeApiHistoryResponse.RequestParameters = requestParameters; List<DescribeApiHistoryResponse.ServiceParameter> serviceParameters = new List<DescribeApiHistoryResponse.ServiceParameter>(); for (int i = 0; i < context.Length("DescribeApiHistory.ServiceParameters.Length"); i++) { DescribeApiHistoryResponse.ServiceParameter serviceParameter = new DescribeApiHistoryResponse.ServiceParameter(); serviceParameter.ServiceParameterName = context.StringValue("DescribeApiHistory.ServiceParameters["+ i +"].ServiceParameterName"); serviceParameter.Location = context.StringValue("DescribeApiHistory.ServiceParameters["+ i +"].Location"); serviceParameter.ParameterType = context.StringValue("DescribeApiHistory.ServiceParameters["+ i +"].ParameterType"); serviceParameters.Add(serviceParameter); } describeApiHistoryResponse.ServiceParameters = serviceParameters; List<DescribeApiHistoryResponse.ServiceParameterMap> serviceParametersMap = new List<DescribeApiHistoryResponse.ServiceParameterMap>(); for (int i = 0; i < context.Length("DescribeApiHistory.ServiceParametersMap.Length"); i++) { DescribeApiHistoryResponse.ServiceParameterMap serviceParameterMap = new DescribeApiHistoryResponse.ServiceParameterMap(); serviceParameterMap.ServiceParameterName = context.StringValue("DescribeApiHistory.ServiceParametersMap["+ i +"].ServiceParameterName"); serviceParameterMap.RequestParameterName = context.StringValue("DescribeApiHistory.ServiceParametersMap["+ i +"].RequestParameterName"); serviceParametersMap.Add(serviceParameterMap); } describeApiHistoryResponse.ServiceParametersMap = serviceParametersMap; return describeApiHistoryResponse; }