public static DescribeImageSharePermissionResponse Unmarshall(UnmarshallerContext context) { DescribeImageSharePermissionResponse describeImageSharePermissionResponse = new DescribeImageSharePermissionResponse(); describeImageSharePermissionResponse.HttpResponse = context.HttpResponse; describeImageSharePermissionResponse.RequestId = context.StringValue("DescribeImageSharePermission.RequestId"); describeImageSharePermissionResponse.RegionId = context.StringValue("DescribeImageSharePermission.RegionId"); describeImageSharePermissionResponse.TotalCount = context.IntegerValue("DescribeImageSharePermission.TotalCount"); describeImageSharePermissionResponse.PageNumber = context.IntegerValue("DescribeImageSharePermission.PageNumber"); describeImageSharePermissionResponse.PageSize = context.IntegerValue("DescribeImageSharePermission.PageSize"); describeImageSharePermissionResponse.ImageId = context.StringValue("DescribeImageSharePermission.ImageId"); List<DescribeImageSharePermissionResponse.ShareGroup> shareGroups = new List<DescribeImageSharePermissionResponse.ShareGroup>(); for (int i = 0; i < context.Length("DescribeImageSharePermission.ShareGroups.Length"); i++) { DescribeImageSharePermissionResponse.ShareGroup shareGroup = new DescribeImageSharePermissionResponse.ShareGroup(); shareGroup.Group = context.StringValue("DescribeImageSharePermission.ShareGroups["+ i +"].Group"); shareGroups.Add(shareGroup); } describeImageSharePermissionResponse.ShareGroups = shareGroups; List<DescribeImageSharePermissionResponse.Account> accounts = new List<DescribeImageSharePermissionResponse.Account>(); for (int i = 0; i < context.Length("DescribeImageSharePermission.Accounts.Length"); i++) { DescribeImageSharePermissionResponse.Account account = new DescribeImageSharePermissionResponse.Account(); account.AliyunId = context.StringValue("DescribeImageSharePermission.Accounts["+ i +"].AliyunId"); accounts.Add(account); } describeImageSharePermissionResponse.Accounts = accounts; return describeImageSharePermissionResponse; }
public static DescribeImageSharePermissionResponse Unmarshall(UnmarshallerContext context) { DescribeImageSharePermissionResponse describeImageSharePermissionResponse = new DescribeImageSharePermissionResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeImageSharePermission.RequestId"), RegionId = context.StringValue("DescribeImageSharePermission.RegionId"), TotalCount = context.IntegerValue("DescribeImageSharePermission.TotalCount"), PageNumber = context.IntegerValue("DescribeImageSharePermission.PageNumber"), PageSize = context.IntegerValue("DescribeImageSharePermission.PageSize"), ImageId = context.StringValue("DescribeImageSharePermission.ImageId") }; List <DescribeImageSharePermissionResponse.ShareGroup> shareGroups = new List <DescribeImageSharePermissionResponse.ShareGroup>(); for (int i = 0; i < context.Length("DescribeImageSharePermission.ShareGroups.Length"); i++) { DescribeImageSharePermissionResponse.ShareGroup shareGroup = new DescribeImageSharePermissionResponse.ShareGroup() { Group = context.StringValue($"DescribeImageSharePermission.ShareGroups[{i}].Group") }; shareGroups.Add(shareGroup); } describeImageSharePermissionResponse.ShareGroups = shareGroups; List <DescribeImageSharePermissionResponse.Account> accounts = new List <DescribeImageSharePermissionResponse.Account>(); for (int i = 0; i < context.Length("DescribeImageSharePermission.Accounts.Length"); i++) { DescribeImageSharePermissionResponse.Account account = new DescribeImageSharePermissionResponse.Account() { AliyunId = context.StringValue($"DescribeImageSharePermission.Accounts[{i}].AliyunId") }; accounts.Add(account); } describeImageSharePermissionResponse.Accounts = accounts; return(describeImageSharePermissionResponse); }
public static DescribeImageSharePermissionResponse Unmarshall(UnmarshallerContext _ctx) { DescribeImageSharePermissionResponse describeImageSharePermissionResponse = new DescribeImageSharePermissionResponse(); describeImageSharePermissionResponse.HttpResponse = _ctx.HttpResponse; describeImageSharePermissionResponse.RequestId = _ctx.StringValue("DescribeImageSharePermission.RequestId"); describeImageSharePermissionResponse.RegionId = _ctx.StringValue("DescribeImageSharePermission.RegionId"); describeImageSharePermissionResponse.TotalCount = _ctx.IntegerValue("DescribeImageSharePermission.TotalCount"); describeImageSharePermissionResponse.PageNumber = _ctx.IntegerValue("DescribeImageSharePermission.PageNumber"); describeImageSharePermissionResponse.PageSize = _ctx.IntegerValue("DescribeImageSharePermission.PageSize"); describeImageSharePermissionResponse.ImageId = _ctx.StringValue("DescribeImageSharePermission.ImageId"); List <DescribeImageSharePermissionResponse.DescribeImageSharePermission_ShareGroup> describeImageSharePermissionResponse_shareGroups = new List <DescribeImageSharePermissionResponse.DescribeImageSharePermission_ShareGroup>(); for (int i = 0; i < _ctx.Length("DescribeImageSharePermission.ShareGroups.Length"); i++) { DescribeImageSharePermissionResponse.DescribeImageSharePermission_ShareGroup shareGroup = new DescribeImageSharePermissionResponse.DescribeImageSharePermission_ShareGroup(); shareGroup.Group = _ctx.StringValue("DescribeImageSharePermission.ShareGroups[" + i + "].Group"); describeImageSharePermissionResponse_shareGroups.Add(shareGroup); } describeImageSharePermissionResponse.ShareGroups = describeImageSharePermissionResponse_shareGroups; List <DescribeImageSharePermissionResponse.DescribeImageSharePermission_Account> describeImageSharePermissionResponse_accounts = new List <DescribeImageSharePermissionResponse.DescribeImageSharePermission_Account>(); for (int i = 0; i < _ctx.Length("DescribeImageSharePermission.Accounts.Length"); i++) { DescribeImageSharePermissionResponse.DescribeImageSharePermission_Account account = new DescribeImageSharePermissionResponse.DescribeImageSharePermission_Account(); account.AliyunId = _ctx.StringValue("DescribeImageSharePermission.Accounts[" + i + "].AliyunId"); describeImageSharePermissionResponse_accounts.Add(account); } describeImageSharePermissionResponse.Accounts = describeImageSharePermissionResponse_accounts; return(describeImageSharePermissionResponse); }