public static ListRolesResponse Unmarshall(UnmarshallerContext context) { ListRolesResponse listRolesResponse = new ListRolesResponse(); listRolesResponse.HttpResponse = context.HttpResponse; listRolesResponse.RequestId = context.StringValue("ListRoles.RequestId"); listRolesResponse.Success = context.BooleanValue("ListRoles.Success"); listRolesResponse.Code = context.StringValue("ListRoles.Code"); listRolesResponse.Message = context.StringValue("ListRoles.Message"); listRolesResponse.HttpStatusCode = context.IntegerValue("ListRoles.HttpStatusCode"); List <ListRolesResponse.ListRoles_Role> listRolesResponse_roles = new List <ListRolesResponse.ListRoles_Role>(); for (int i = 0; i < context.Length("ListRoles.Roles.Length"); i++) { ListRolesResponse.ListRoles_Role role = new ListRolesResponse.ListRoles_Role(); role.RoleId = context.StringValue("ListRoles.Roles[" + i + "].RoleId"); role.InstanceId = context.StringValue("ListRoles.Roles[" + i + "].InstanceId"); role.RoleName = context.StringValue("ListRoles.Roles[" + i + "].RoleName"); role.RoleDescription = context.StringValue("ListRoles.Roles[" + i + "].RoleDescription"); listRolesResponse_roles.Add(role); } listRolesResponse.Roles = listRolesResponse_roles; return(listRolesResponse); }
public static ListRolesResponse Unmarshall(UnmarshallerContext _ctx) { ListRolesResponse listRolesResponse = new ListRolesResponse(); listRolesResponse.HttpResponse = _ctx.HttpResponse; listRolesResponse.RequestId = _ctx.StringValue("ListRoles.RequestId"); listRolesResponse.Success = _ctx.BooleanValue("ListRoles.Success"); listRolesResponse.Code = _ctx.StringValue("ListRoles.Code"); listRolesResponse.Message = _ctx.StringValue("ListRoles.Message"); List <ListRolesResponse.ListRoles_Role> listRolesResponse_data = new List <ListRolesResponse.ListRoles_Role>(); for (int i = 0; i < _ctx.Length("ListRoles.Data.Length"); i++) { ListRolesResponse.ListRoles_Role role = new ListRolesResponse.ListRoles_Role(); role.Id = _ctx.LongValue("ListRoles.Data[" + i + "].Id"); role.Name = _ctx.StringValue("ListRoles.Data[" + i + "].Name"); role.DisplayName = _ctx.StringValue("ListRoles.Data[" + i + "].DisplayName"); role.Level = _ctx.IntegerValue("ListRoles.Data[" + i + "].Level"); role.CreateTime = _ctx.StringValue("ListRoles.Data[" + i + "].CreateTime"); role.UpdateTime = _ctx.StringValue("ListRoles.Data[" + i + "].UpdateTime"); listRolesResponse_data.Add(role); } listRolesResponse.Data = listRolesResponse_data; return(listRolesResponse); }
public static ListRolesResponse Unmarshall(UnmarshallerContext context) { ListRolesResponse listRolesResponse = new ListRolesResponse(); listRolesResponse.HttpResponse = context.HttpResponse; listRolesResponse.RequestId = context.StringValue("ListRoles.RequestId"); listRolesResponse.IsTruncated = context.BooleanValue("ListRoles.IsTruncated"); listRolesResponse.Marker = context.StringValue("ListRoles.Marker"); List <ListRolesResponse.ListRoles_Role> listRolesResponse_roles = new List <ListRolesResponse.ListRoles_Role>(); for (int i = 0; i < context.Length("ListRoles.Roles.Length"); i++) { ListRolesResponse.ListRoles_Role role = new ListRolesResponse.ListRoles_Role(); role.RoleId = context.StringValue("ListRoles.Roles[" + i + "].RoleId"); role.RoleName = context.StringValue("ListRoles.Roles[" + i + "].RoleName"); role.Arn = context.StringValue("ListRoles.Roles[" + i + "].Arn"); role.Description = context.StringValue("ListRoles.Roles[" + i + "].Description"); role.CreateDate = context.StringValue("ListRoles.Roles[" + i + "].CreateDate"); role.UpdateDate = context.StringValue("ListRoles.Roles[" + i + "].UpdateDate"); role.MaxSessionDuration = context.LongValue("ListRoles.Roles[" + i + "].MaxSessionDuration"); listRolesResponse_roles.Add(role); } listRolesResponse.Roles = listRolesResponse_roles; return(listRolesResponse); }
public static ListRolesResponse Unmarshall(UnmarshallerContext _ctx) { ListRolesResponse listRolesResponse = new ListRolesResponse(); listRolesResponse.HttpResponse = _ctx.HttpResponse; listRolesResponse.Code = _ctx.StringValue("ListRoles.Code"); listRolesResponse.HttpStatusCode = _ctx.IntegerValue("ListRoles.HttpStatusCode"); listRolesResponse.Message = _ctx.StringValue("ListRoles.Message"); listRolesResponse.RequestId = _ctx.StringValue("ListRoles.RequestId"); List <ListRolesResponse.ListRoles_Role> listRolesResponse_data = new List <ListRolesResponse.ListRoles_Role>(); for (int i = 0; i < _ctx.Length("ListRoles.Data.Length"); i++) { ListRolesResponse.ListRoles_Role role = new ListRolesResponse.ListRoles_Role(); role.Name = _ctx.StringValue("ListRoles.Data[" + i + "].Name"); role.RoleId = _ctx.StringValue("ListRoles.Data[" + i + "].RoleId"); listRolesResponse_data.Add(role); } listRolesResponse.Data = listRolesResponse_data; return(listRolesResponse); }