Ejemplo n.º 1
0
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse     = context.HttpResponse;
            describeBackupsResponse.RequestId        = context.StringValue("DescribeBackups.RequestId");
            describeBackupsResponse.TotalRecordCount = context.StringValue("DescribeBackups.TotalRecordCount");
            describeBackupsResponse.PageNumber       = context.StringValue("DescribeBackups.PageNumber");
            describeBackupsResponse.PageRecordCount  = context.StringValue("DescribeBackups.PageRecordCount");

            List <DescribeBackupsResponse.DescribeBackups_Backup> describeBackupsResponse_items = new List <DescribeBackupsResponse.DescribeBackups_Backup>();

            for (int i = 0; i < context.Length("DescribeBackups.Items.Length"); i++)
            {
                DescribeBackupsResponse.DescribeBackups_Backup backup = new DescribeBackupsResponse.DescribeBackups_Backup();
                backup.BackupId        = context.StringValue("DescribeBackups.Items[" + i + "].BackupId");
                backup.DBClusterId     = context.StringValue("DescribeBackups.Items[" + i + "].DBClusterId");
                backup.BackupStatus    = context.StringValue("DescribeBackups.Items[" + i + "].BackupStatus");
                backup.BackupStartTime = context.StringValue("DescribeBackups.Items[" + i + "].BackupStartTime");
                backup.BackupEndTime   = context.StringValue("DescribeBackups.Items[" + i + "].BackupEndTime");
                backup.BackupType      = context.StringValue("DescribeBackups.Items[" + i + "].BackupType");
                backup.BackupMode      = context.StringValue("DescribeBackups.Items[" + i + "].BackupMode");
                backup.BackupMethod    = context.StringValue("DescribeBackups.Items[" + i + "].BackupMethod");
                backup.StoreStatus     = context.StringValue("DescribeBackups.Items[" + i + "].StoreStatus");

                describeBackupsResponse_items.Add(backup);
            }
            describeBackupsResponse.Items = describeBackupsResponse_items;

            return(describeBackupsResponse);
        }
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse = context.HttpResponse;
            describeBackupsResponse.RequestId    = context.StringValue("DescribeBackups.RequestId");
            describeBackupsResponse.PageNumber   = context.IntegerValue("DescribeBackups.PageNumber");
            describeBackupsResponse.PageSize     = context.IntegerValue("DescribeBackups.PageSize");
            describeBackupsResponse.TotalCount   = context.IntegerValue("DescribeBackups.TotalCount");

            List <DescribeBackupsResponse.DescribeBackups_Backup> describeBackupsResponse_backups = new List <DescribeBackupsResponse.DescribeBackups_Backup>();

            for (int i = 0; i < context.Length("DescribeBackups.Backups.Length"); i++)
            {
                DescribeBackupsResponse.DescribeBackups_Backup backup = new DescribeBackupsResponse.DescribeBackups_Backup();
                backup.BackupDBNames             = context.StringValue("DescribeBackups.Backups[" + i + "].BackupDBNames");
                backup.BackupId                  = context.IntegerValue("DescribeBackups.Backups[" + i + "].BackupId");
                backup.BackupStatus              = context.StringValue("DescribeBackups.Backups[" + i + "].BackupStatus");
                backup.BackupStartTime           = context.StringValue("DescribeBackups.Backups[" + i + "].BackupStartTime");
                backup.BackupEndTime             = context.StringValue("DescribeBackups.Backups[" + i + "].BackupEndTime");
                backup.BackupType                = context.StringValue("DescribeBackups.Backups[" + i + "].BackupType");
                backup.BackupMode                = context.StringValue("DescribeBackups.Backups[" + i + "].BackupMode");
                backup.BackupMethod              = context.StringValue("DescribeBackups.Backups[" + i + "].BackupMethod");
                backup.BackupDownloadURL         = context.StringValue("DescribeBackups.Backups[" + i + "].BackupDownloadURL");
                backup.BackupIntranetDownloadURL = context.StringValue("DescribeBackups.Backups[" + i + "].BackupIntranetDownloadURL");
                backup.BackupSize                = context.LongValue("DescribeBackups.Backups[" + i + "].BackupSize");

                describeBackupsResponse_backups.Add(backup);
            }
            describeBackupsResponse.Backups = describeBackupsResponse_backups;

            return(describeBackupsResponse);
        }
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse = context.HttpResponse;
            describeBackupsResponse.RequestId    = context.StringValue("DescribeBackups.RequestId");

            List <DescribeBackupsResponse.DescribeBackups_Backup> describeBackupsResponse_backups = new List <DescribeBackupsResponse.DescribeBackups_Backup>();

            for (int i = 0; i < context.Length("DescribeBackups.Backups.Length"); i++)
            {
                DescribeBackupsResponse.DescribeBackups_Backup backup = new DescribeBackupsResponse.DescribeBackups_Backup();
                backup.ClusterId    = context.StringValue("DescribeBackups.Backups[" + i + "].ClusterId");
                backup.DataCenterId = context.StringValue("DescribeBackups.Backups[" + i + "].DataCenterId");
                backup.BackupId     = context.StringValue("DescribeBackups.Backups[" + i + "].BackupId");
                backup.BackupType   = context.StringValue("DescribeBackups.Backups[" + i + "].BackupType");
                backup.Status       = context.StringValue("DescribeBackups.Backups[" + i + "].Status");
                backup.StartTime    = context.StringValue("DescribeBackups.Backups[" + i + "].StartTime");
                backup.EndTime      = context.StringValue("DescribeBackups.Backups[" + i + "].EndTime");
                backup.Size         = context.LongValue("DescribeBackups.Backups[" + i + "].Size");

                describeBackupsResponse_backups.Add(backup);
            }
            describeBackupsResponse.Backups = describeBackupsResponse_backups;

            return(describeBackupsResponse);
        }
Ejemplo n.º 4
0
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse = _ctx.HttpResponse;
            describeBackupsResponse.RequestId    = _ctx.StringValue("DescribeBackups.RequestId");
            describeBackupsResponse.TotalCount   = _ctx.StringValue("DescribeBackups.TotalCount");
            describeBackupsResponse.PageNumber   = _ctx.StringValue("DescribeBackups.PageNumber");
            describeBackupsResponse.PageSize     = _ctx.StringValue("DescribeBackups.PageSize");

            List <DescribeBackupsResponse.DescribeBackups_Backup> describeBackupsResponse_items = new List <DescribeBackupsResponse.DescribeBackups_Backup>();

            for (int i = 0; i < _ctx.Length("DescribeBackups.Items.Length"); i++)
            {
                DescribeBackupsResponse.DescribeBackups_Backup backup = new DescribeBackupsResponse.DescribeBackups_Backup();
                backup.BackupId        = _ctx.StringValue("DescribeBackups.Items[" + i + "].BackupId");
                backup.DBClusterId     = _ctx.StringValue("DescribeBackups.Items[" + i + "].DBClusterId");
                backup.BackupStartTime = _ctx.StringValue("DescribeBackups.Items[" + i + "].BackupStartTime");
                backup.BackupEndTime   = _ctx.StringValue("DescribeBackups.Items[" + i + "].BackupEndTime");
                backup.BackupSize      = _ctx.IntegerValue("DescribeBackups.Items[" + i + "].BackupSize");
                backup.BackupMethod    = _ctx.StringValue("DescribeBackups.Items[" + i + "].BackupMethod");
                backup.BackupType      = _ctx.StringValue("DescribeBackups.Items[" + i + "].BackupType");

                describeBackupsResponse_items.Add(backup);
            }
            describeBackupsResponse.Items = describeBackupsResponse_items;

            return(describeBackupsResponse);
        }
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse         = _ctx.HttpResponse;
            describeBackupsResponse.RequestId            = _ctx.StringValue("DescribeBackups.RequestId");
            describeBackupsResponse.TotalRecordCount     = _ctx.StringValue("DescribeBackups.TotalRecordCount");
            describeBackupsResponse.PageNumber           = _ctx.StringValue("DescribeBackups.PageNumber");
            describeBackupsResponse.PageRecordCount      = _ctx.StringValue("DescribeBackups.PageRecordCount");
            describeBackupsResponse.TotalBackupSize      = _ctx.LongValue("DescribeBackups.TotalBackupSize");
            describeBackupsResponse.TotalEcsSnapshotSize = _ctx.LongValue("DescribeBackups.TotalEcsSnapshotSize");

            List <DescribeBackupsResponse.DescribeBackups_Backup> describeBackupsResponse_items = new List <DescribeBackupsResponse.DescribeBackups_Backup>();

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

                describeBackupsResponse_items.Add(backup);
            }
            describeBackupsResponse.Items = describeBackupsResponse_items;

            return(describeBackupsResponse);
        }
        public static DescribeBackupsResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeBackupsResponse describeBackupsResponse = new DescribeBackupsResponse();

            describeBackupsResponse.HttpResponse     = context.HttpResponse;
            describeBackupsResponse.RequestId        = context.StringValue("DescribeBackups.RequestId");
            describeBackupsResponse.TotalRecordCount = context.StringValue("DescribeBackups.TotalRecordCount");
            describeBackupsResponse.PageNumber       = context.StringValue("DescribeBackups.PageNumber");
            describeBackupsResponse.PageRecordCount  = context.StringValue("DescribeBackups.PageRecordCount");
            describeBackupsResponse.TotalBackupSize  = context.LongValue("DescribeBackups.TotalBackupSize");

            List <DescribeBackupsResponse.DescribeBackups_Backup> describeBackupsResponse_items = new List <DescribeBackupsResponse.DescribeBackups_Backup>();

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

                describeBackupsResponse_items.Add(backup);
            }
            describeBackupsResponse.Items = describeBackupsResponse_items;

            return(describeBackupsResponse);
        }