public static DescribeStrategyResponse Unmarshall(UnmarshallerContext context) { DescribeStrategyResponse describeStrategyResponse = new DescribeStrategyResponse(); describeStrategyResponse.HttpResponse = context.HttpResponse; describeStrategyResponse.RequestId = context.StringValue("DescribeStrategy.RequestId"); describeStrategyResponse.ReplicaId = context.StringValue("DescribeStrategy.ReplicaId"); describeStrategyResponse.RecoveryMode = context.StringValue("DescribeStrategy.RecoveryMode"); describeStrategyResponse.VerificationMode = context.StringValue("DescribeStrategy.VerificationMode"); return(describeStrategyResponse); }
public static DescribeStrategyResponse Unmarshall(UnmarshallerContext _ctx) { DescribeStrategyResponse describeStrategyResponse = new DescribeStrategyResponse(); describeStrategyResponse.HttpResponse = _ctx.HttpResponse; describeStrategyResponse.RequestId = _ctx.StringValue("DescribeStrategy.RequestId"); List <DescribeStrategyResponse.DescribeStrategy_Strategy> describeStrategyResponse_strategies = new List <DescribeStrategyResponse.DescribeStrategy_Strategy>(); for (int i = 0; i < _ctx.Length("DescribeStrategy.Strategies.Length"); i++) { DescribeStrategyResponse.DescribeStrategy_Strategy strategy = new DescribeStrategyResponse.DescribeStrategy_Strategy(); strategy.CycleDays = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].CycleDays"); strategy.Id = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].Id"); strategy.CycleStartTime = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].CycleStartTime"); strategy.Type = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].Type"); strategy.Name = _ctx.StringValue("DescribeStrategy.Strategies[" + i + "].Name"); strategy.RiskCount = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].RiskCount"); strategy.EcsCount = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].EcsCount"); strategy.ExecStatus = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].ExecStatus"); strategy.ProcessRate = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].ProcessRate"); strategy.PassRate = _ctx.IntegerValue("DescribeStrategy.Strategies[" + i + "].PassRate"); strategy.AuthVersionList = _ctx.StringValue("DescribeStrategy.Strategies[" + i + "].AuthVersionList"); List <DescribeStrategyResponse.DescribeStrategy_Strategy.DescribeStrategy_ConfigTarget> strategy_configTargets = new List <DescribeStrategyResponse.DescribeStrategy_Strategy.DescribeStrategy_ConfigTarget>(); for (int j = 0; j < _ctx.Length("DescribeStrategy.Strategies[" + i + "].ConfigTargets.Length"); j++) { DescribeStrategyResponse.DescribeStrategy_Strategy.DescribeStrategy_ConfigTarget configTarget = new DescribeStrategyResponse.DescribeStrategy_Strategy.DescribeStrategy_ConfigTarget(); configTarget.Flag = _ctx.StringValue("DescribeStrategy.Strategies[" + i + "].ConfigTargets[" + j + "].Flag"); configTarget.TargetType = _ctx.StringValue("DescribeStrategy.Strategies[" + i + "].ConfigTargets[" + j + "].TargetType"); configTarget.Target = _ctx.StringValue("DescribeStrategy.Strategies[" + i + "].ConfigTargets[" + j + "].Target"); strategy_configTargets.Add(configTarget); } strategy.ConfigTargets = strategy_configTargets; describeStrategyResponse_strategies.Add(strategy); } describeStrategyResponse.Strategies = describeStrategyResponse_strategies; return(describeStrategyResponse); }