예제 #1
0
        public static DescribeDBClusterAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDBClusterAttributeResponse describeDBClusterAttributeResponse = new DescribeDBClusterAttributeResponse();

            describeDBClusterAttributeResponse.HttpResponse = context.HttpResponse;
            describeDBClusterAttributeResponse.RequestId    = context.StringValue("DescribeDBClusterAttribute.RequestId");

            List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster> describeDBClusterAttributeResponse_items = new List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster>();

            for (int i = 0; i < context.Length("DescribeDBClusterAttribute.Items.Length"); i++)
            {
                DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster dBCluster = new DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster();
                dBCluster.RegionId             = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].RegionId");
                dBCluster.ZoneId               = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ZoneId");
                dBCluster.DBClusterId          = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterId");
                dBCluster.DBClusterType        = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterType");
                dBCluster.DBClusterDescription = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterDescription");
                dBCluster.Category             = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Category");
                dBCluster.LockMode             = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].LockMode");
                dBCluster.LockReason           = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].LockReason");
                dBCluster.PayType              = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].PayType");
                dBCluster.DBVersion            = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBVersion");
                dBCluster.DBClusterStatus      = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterStatus");
                dBCluster.DBNodeStorage        = context.LongValue("DescribeDBClusterAttribute.Items[" + i + "].DBNodeStorage");
                dBCluster.DBNodeClass          = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBNodeClass");
                dBCluster.DBNodeCount          = context.LongValue("DescribeDBClusterAttribute.Items[" + i + "].DBNodeCount");
                dBCluster.CreationTime         = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].CreationTime");
                dBCluster.ExpireTime           = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ExpireTime");
                dBCluster.Expired              = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Expired");
                dBCluster.MaintainTime         = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].MaintainTime");
                dBCluster.Engine               = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Engine");
                dBCluster.VPCId                = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].VPCId");
                dBCluster.VSwitchId            = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].VSwitchId");
                dBCluster.VPCCloudInstanceId   = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].VPCCloudInstanceId");
                dBCluster.CommodityCode        = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].CommodityCode");
                dBCluster.DBClusterNetworkType = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterNetworkType");

                List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag> dBCluster_tags = new List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag>();
                for (int j = 0; j < context.Length("DescribeDBClusterAttribute.Items[" + i + "].Tags.Length"); j++)
                {
                    DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag tag = new DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag();
                    tag.Key    = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Tags[" + j + "].Key");
                    tag._Value = context.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Tags[" + j + "].Value");

                    dBCluster_tags.Add(tag);
                }
                dBCluster.Tags = dBCluster_tags;

                describeDBClusterAttributeResponse_items.Add(dBCluster);
            }
            describeDBClusterAttributeResponse.Items = describeDBClusterAttributeResponse_items;

            return(describeDBClusterAttributeResponse);
        }
        public static DescribeDBClusterAttributeResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDBClusterAttributeResponse describeDBClusterAttributeResponse = new DescribeDBClusterAttributeResponse();

            describeDBClusterAttributeResponse.HttpResponse              = _ctx.HttpResponse;
            describeDBClusterAttributeResponse.DeletionLock              = _ctx.IntegerValue("DescribeDBClusterAttribute.DeletionLock");
            describeDBClusterAttributeResponse.Category                  = _ctx.StringValue("DescribeDBClusterAttribute.Category");
            describeDBClusterAttributeResponse.ResourceGroupId           = _ctx.StringValue("DescribeDBClusterAttribute.ResourceGroupId");
            describeDBClusterAttributeResponse.DataLevel1BackupChainSize = _ctx.LongValue("DescribeDBClusterAttribute.DataLevel1BackupChainSize");
            describeDBClusterAttributeResponse.DBClusterId               = _ctx.StringValue("DescribeDBClusterAttribute.DBClusterId");
            describeDBClusterAttributeResponse.DBClusterNetworkType      = _ctx.StringValue("DescribeDBClusterAttribute.DBClusterNetworkType");
            describeDBClusterAttributeResponse.DBType               = _ctx.StringValue("DescribeDBClusterAttribute.DBType");
            describeDBClusterAttributeResponse.IsLatestVersion      = _ctx.BooleanValue("DescribeDBClusterAttribute.IsLatestVersion");
            describeDBClusterAttributeResponse.DBVersion            = _ctx.StringValue("DescribeDBClusterAttribute.DBVersion");
            describeDBClusterAttributeResponse.StorageMax           = _ctx.LongValue("DescribeDBClusterAttribute.StorageMax");
            describeDBClusterAttributeResponse.ZoneIds              = _ctx.StringValue("DescribeDBClusterAttribute.ZoneIds");
            describeDBClusterAttributeResponse.MaintainTime         = _ctx.StringValue("DescribeDBClusterAttribute.MaintainTime");
            describeDBClusterAttributeResponse.Engine               = _ctx.StringValue("DescribeDBClusterAttribute.Engine");
            describeDBClusterAttributeResponse.RequestId            = _ctx.StringValue("DescribeDBClusterAttribute.RequestId");
            describeDBClusterAttributeResponse.VPCId                = _ctx.StringValue("DescribeDBClusterAttribute.VPCId");
            describeDBClusterAttributeResponse.DBClusterStatus      = _ctx.StringValue("DescribeDBClusterAttribute.DBClusterStatus");
            describeDBClusterAttributeResponse.VSwitchId            = _ctx.StringValue("DescribeDBClusterAttribute.VSwitchId");
            describeDBClusterAttributeResponse.DBClusterDescription = _ctx.StringValue("DescribeDBClusterAttribute.DBClusterDescription");
            describeDBClusterAttributeResponse.Expired              = _ctx.StringValue("DescribeDBClusterAttribute.Expired");
            describeDBClusterAttributeResponse.LockMode             = _ctx.StringValue("DescribeDBClusterAttribute.LockMode");
            describeDBClusterAttributeResponse.PayType              = _ctx.StringValue("DescribeDBClusterAttribute.PayType");
            describeDBClusterAttributeResponse.StorageUsed          = _ctx.LongValue("DescribeDBClusterAttribute.StorageUsed");
            describeDBClusterAttributeResponse.DBVersionStatus      = _ctx.StringValue("DescribeDBClusterAttribute.DBVersionStatus");
            describeDBClusterAttributeResponse.SubCategory          = _ctx.StringValue("DescribeDBClusterAttribute.SubCategory");
            describeDBClusterAttributeResponse.CreationTime         = _ctx.StringValue("DescribeDBClusterAttribute.CreationTime");
            describeDBClusterAttributeResponse.RegionId             = _ctx.StringValue("DescribeDBClusterAttribute.RegionId");
            describeDBClusterAttributeResponse.SQLSize              = _ctx.LongValue("DescribeDBClusterAttribute.SQLSize");
            describeDBClusterAttributeResponse.ExpireTime           = _ctx.StringValue("DescribeDBClusterAttribute.ExpireTime");

            List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBNode> describeDBClusterAttributeResponse_dBNodes = new List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBNode>();

            for (int i = 0; i < _ctx.Length("DescribeDBClusterAttribute.DBNodes.Length"); i++)
            {
                DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBNode dBNode = new DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBNode();
                dBNode.DBNodeStatus     = _ctx.StringValue("DescribeDBClusterAttribute.DBNodes[" + i + "].DBNodeStatus");
                dBNode.MaxConnections   = _ctx.IntegerValue("DescribeDBClusterAttribute.DBNodes[" + i + "].MaxConnections");
                dBNode.ZoneId           = _ctx.StringValue("DescribeDBClusterAttribute.DBNodes[" + i + "].ZoneId");
                dBNode.DBNodeRole       = _ctx.StringValue("DescribeDBClusterAttribute.DBNodes[" + i + "].DBNodeRole");
                dBNode.CreationTime     = _ctx.StringValue("DescribeDBClusterAttribute.DBNodes[" + i + "].CreationTime");
                dBNode.DBNodeId         = _ctx.StringValue("DescribeDBClusterAttribute.DBNodes[" + i + "].DBNodeId");
                dBNode.FailoverPriority = _ctx.IntegerValue("DescribeDBClusterAttribute.DBNodes[" + i + "].FailoverPriority");
                dBNode.DBNodeClass      = _ctx.StringValue("DescribeDBClusterAttribute.DBNodes[" + i + "].DBNodeClass");
                dBNode.MaxIOPS          = _ctx.IntegerValue("DescribeDBClusterAttribute.DBNodes[" + i + "].MaxIOPS");

                describeDBClusterAttributeResponse_dBNodes.Add(dBNode);
            }
            describeDBClusterAttributeResponse.DBNodes = describeDBClusterAttributeResponse_dBNodes;

            List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_Tag> describeDBClusterAttributeResponse_tags = new List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_Tag>();

            for (int i = 0; i < _ctx.Length("DescribeDBClusterAttribute.Tags.Length"); i++)
            {
                DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_Tag tag = new DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_Tag();
                tag._Value = _ctx.StringValue("DescribeDBClusterAttribute.Tags[" + i + "].Value");
                tag.Key    = _ctx.StringValue("DescribeDBClusterAttribute.Tags[" + i + "].Key");

                describeDBClusterAttributeResponse_tags.Add(tag);
            }
            describeDBClusterAttributeResponse.Tags = describeDBClusterAttributeResponse_tags;

            return(describeDBClusterAttributeResponse);
        }
예제 #3
0
        public static DescribeDBClusterAttributeResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDBClusterAttributeResponse describeDBClusterAttributeResponse = new DescribeDBClusterAttributeResponse();

            describeDBClusterAttributeResponse.HttpResponse = _ctx.HttpResponse;
            describeDBClusterAttributeResponse.RequestId    = _ctx.StringValue("DescribeDBClusterAttribute.RequestId");

            List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster> describeDBClusterAttributeResponse_items = new List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster>();

            for (int i = 0; i < _ctx.Length("DescribeDBClusterAttribute.Items.Length"); i++)
            {
                DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster dBCluster = new DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster();
                dBCluster.RegionId             = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].RegionId");
                dBCluster.ZoneId               = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ZoneId");
                dBCluster.DBClusterId          = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterId");
                dBCluster.DBClusterType        = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterType");
                dBCluster.DBClusterDescription = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterDescription");
                dBCluster.Category             = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Category");
                dBCluster.LockMode             = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].LockMode");
                dBCluster.LockReason           = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].LockReason");
                dBCluster.PayType              = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].PayType");
                dBCluster.DBVersion            = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBVersion");
                dBCluster.DBClusterStatus      = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterStatus");
                dBCluster.DBNodeStorage        = _ctx.LongValue("DescribeDBClusterAttribute.Items[" + i + "].DBNodeStorage");
                dBCluster.DBNodeClass          = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBNodeClass");
                dBCluster.DBNodeCount          = _ctx.LongValue("DescribeDBClusterAttribute.Items[" + i + "].DBNodeCount");
                dBCluster.CreationTime         = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].CreationTime");
                dBCluster.ExpireTime           = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ExpireTime");
                dBCluster.Expired              = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Expired");
                dBCluster.MaintainTime         = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].MaintainTime");
                dBCluster.Engine               = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Engine");
                dBCluster.VPCId                = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].VPCId");
                dBCluster.VSwitchId            = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].VSwitchId");
                dBCluster.VPCCloudInstanceId   = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].VPCCloudInstanceId");
                dBCluster.CommodityCode        = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].CommodityCode");
                dBCluster.DBClusterNetworkType = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DBClusterNetworkType");
                dBCluster.ConnectionString     = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ConnectionString");
                dBCluster.Port              = _ctx.IntegerValue("DescribeDBClusterAttribute.Items[" + i + "].Port");
                dBCluster.RdsInstanceId     = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].RdsInstanceId");
                dBCluster.DtsJobId          = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DtsJobId");
                dBCluster.ExecutorCount     = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ExecutorCount");
                dBCluster.DiskType          = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].DiskType");
                dBCluster.ComputeResource   = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ComputeResource");
                dBCluster.StorageResource   = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].StorageResource");
                dBCluster.Mode              = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Mode");
                dBCluster.ResourceGroupId   = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].ResourceGroupId");
                dBCluster.ElasticIOResource = _ctx.IntegerValue("DescribeDBClusterAttribute.Items[" + i + "].ElasticIOResource");
                dBCluster.EngineVersion     = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].EngineVersion");
                dBCluster.UserENIStatus     = _ctx.BooleanValue("DescribeDBClusterAttribute.Items[" + i + "].UserENIStatus");
                dBCluster.EnableSpark       = _ctx.BooleanValue("DescribeDBClusterAttribute.Items[" + i + "].EnableSpark");
                dBCluster.EnableAirflow     = _ctx.BooleanValue("DescribeDBClusterAttribute.Items[" + i + "].EnableAirflow");

                List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag> dBCluster_tags = new List <DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag>();
                for (int j = 0; j < _ctx.Length("DescribeDBClusterAttribute.Items[" + i + "].Tags.Length"); j++)
                {
                    DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag tag = new DescribeDBClusterAttributeResponse.DescribeDBClusterAttribute_DBCluster.DescribeDBClusterAttribute_Tag();
                    tag.Key    = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Tags[" + j + "].Key");
                    tag._Value = _ctx.StringValue("DescribeDBClusterAttribute.Items[" + i + "].Tags[" + j + "].Value");

                    dBCluster_tags.Add(tag);
                }
                dBCluster.Tags = dBCluster_tags;

                describeDBClusterAttributeResponse_items.Add(dBCluster);
            }
            describeDBClusterAttributeResponse.Items = describeDBClusterAttributeResponse_items;

            return(describeDBClusterAttributeResponse);
        }