Esempio n. 1
0
        public static DescribeDetachedBackupsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDetachedBackupsResponse describeDetachedBackupsResponse = new DescribeDetachedBackupsResponse();

            describeDetachedBackupsResponse.HttpResponse     = _ctx.HttpResponse;
            describeDetachedBackupsResponse.RequestId        = _ctx.StringValue("DescribeDetachedBackups.RequestId");
            describeDetachedBackupsResponse.TotalRecordCount = _ctx.StringValue("DescribeDetachedBackups.TotalRecordCount");
            describeDetachedBackupsResponse.PageNumber       = _ctx.StringValue("DescribeDetachedBackups.PageNumber");
            describeDetachedBackupsResponse.PageRecordCount  = _ctx.StringValue("DescribeDetachedBackups.PageRecordCount");

            List <DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup> describeDetachedBackupsResponse_items = new List <DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup>();

            for (int i = 0; i < _ctx.Length("DescribeDetachedBackups.Items.Length"); i++)
            {
                DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup backup = new DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup();
                backup.BackupId        = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupId");
                backup.DBClusterId     = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].DBClusterId");
                backup.BackupStatus    = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupStatus");
                backup.BackupStartTime = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupStartTime");
                backup.BackupEndTime   = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupEndTime");
                backup.BackupType      = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupType");
                backup.BackupMode      = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupMode");
                backup.BackupMethod    = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupMethod");
                backup.StoreStatus     = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].StoreStatus");
                backup.BackupSetSize   = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupSetSize");
                backup.ConsistentTime  = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].ConsistentTime");
                backup.BackupsLevel    = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupsLevel");
                backup.IsAvail         = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].IsAvail");

                describeDetachedBackupsResponse_items.Add(backup);
            }
            describeDetachedBackupsResponse.Items = describeDetachedBackupsResponse_items;

            return(describeDetachedBackupsResponse);
        }
        public static DescribeDetachedBackupsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDetachedBackupsResponse describeDetachedBackupsResponse = new DescribeDetachedBackupsResponse();

            describeDetachedBackupsResponse.HttpResponse     = _ctx.HttpResponse;
            describeDetachedBackupsResponse.RequestId        = _ctx.StringValue("DescribeDetachedBackups.RequestId");
            describeDetachedBackupsResponse.TotalRecordCount = _ctx.StringValue("DescribeDetachedBackups.TotalRecordCount");
            describeDetachedBackupsResponse.PageNumber       = _ctx.StringValue("DescribeDetachedBackups.PageNumber");
            describeDetachedBackupsResponse.PageRecordCount  = _ctx.StringValue("DescribeDetachedBackups.PageRecordCount");
            describeDetachedBackupsResponse.TotalBackupSize  = _ctx.LongValue("DescribeDetachedBackups.TotalBackupSize");

            List <DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup> describeDetachedBackupsResponse_items = new List <DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup>();

            for (int i = 0; i < _ctx.Length("DescribeDetachedBackups.Items.Length"); i++)
            {
                DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup backup = new DescribeDetachedBackupsResponse.DescribeDetachedBackups_Backup();
                backup.BackupId                  = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupId");
                backup.DBInstanceId              = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].DBInstanceId");
                backup.BackupStatus              = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupStatus");
                backup.BackupStartTime           = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupStartTime");
                backup.BackupEndTime             = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupEndTime");
                backup.BackupType                = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupType");
                backup.BackupMode                = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupMode");
                backup.BackupMethod              = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupMethod");
                backup.BackupDownloadURL         = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupDownloadURL");
                backup.BackupIntranetDownloadURL = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupIntranetDownloadURL");
                backup.BackupLocation            = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupLocation");
                backup.BackupExtractionStatus    = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupExtractionStatus");
                backup.BackupScale               = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupScale");
                backup.BackupDBNames             = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].BackupDBNames");
                backup.TotalBackupSize           = _ctx.LongValue("DescribeDetachedBackups.Items[" + i + "].TotalBackupSize");
                backup.BackupSize                = _ctx.LongValue("DescribeDetachedBackups.Items[" + i + "].BackupSize");
                backup.HostInstanceID            = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].HostInstanceID");
                backup.StoreStatus               = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].StoreStatus");
                backup.MetaStatus                = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].MetaStatus");
                backup.SlaveStatus               = _ctx.StringValue("DescribeDetachedBackups.Items[" + i + "].SlaveStatus");
                backup.ConsistentTime            = _ctx.LongValue("DescribeDetachedBackups.Items[" + i + "].ConsistentTime");
                backup.IsAvail = _ctx.IntegerValue("DescribeDetachedBackups.Items[" + i + "].IsAvail");

                describeDetachedBackupsResponse_items.Add(backup);
            }
            describeDetachedBackupsResponse.Items = describeDetachedBackupsResponse_items;

            return(describeDetachedBackupsResponse);
        }