Example #1
0
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = context.HttpResponse;
            describeAvailableResourceResponse.RequestId    = context.StringValue("DescribeAvailableResource.RequestId");
            describeAvailableResourceResponse.RegionId     = context.StringValue("DescribeAvailableResource.RegionId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZoneList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < context.Length("DescribeAvailableResource.AvailableZoneList.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.ZoneId = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].ZoneId");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial> availableZone_supportedSerialList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial supportedSerial = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial();
                    supportedSerial.Serial = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].Serial");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass> supportedSerial_supportedInstanceClassList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass>();
                    for (int k = 0; k < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass supportedInstanceClass = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass();
                        supportedInstanceClass.InstanceClass = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList[" + k + "].InstanceClass");
                        supportedInstanceClass.Tips          = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList[" + k + "].Tips");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount> supportedInstanceClass_supportedNodeCountList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount>();
                        for (int l = 0; l < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList[" + k + "].SupportedNodeCountList.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount supportedNodeCount = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedSerial.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount();
                            supportedNodeCount.NodeCount = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList[" + k + "].SupportedNodeCountList[" + l + "].NodeCount");

                            List <string> supportedNodeCount_storageSize = new List <string>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList[" + k + "].SupportedNodeCountList[" + l + "].StorageSize.Length"); m++)
                            {
                                supportedNodeCount_storageSize.Add(context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedSerialList[" + j + "].SupportedInstanceClassList[" + k + "].SupportedNodeCountList[" + l + "].StorageSize[" + m + "]"));
                            }
                            supportedNodeCount.StorageSize = supportedNodeCount_storageSize;

                            supportedInstanceClass_supportedNodeCountList.Add(supportedNodeCount);
                        }
                        supportedInstanceClass.SupportedNodeCountList = supportedInstanceClass_supportedNodeCountList;

                        supportedSerial_supportedInstanceClassList.Add(supportedInstanceClass);
                    }
                    supportedSerial.SupportedInstanceClassList = supportedSerial_supportedInstanceClassList;

                    availableZone_supportedSerialList.Add(supportedSerial);
                }
                availableZone.SupportedSerialList = availableZone_supportedSerialList;

                describeAvailableResourceResponse_availableZoneList.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZoneList = describeAvailableResourceResponse_availableZoneList;

            return(describeAvailableResourceResponse);
        }
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = context.HttpResponse;
            describeAvailableResourceResponse.RequestId    = context.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < context.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId   = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine> availableZone_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine();
                    supportedEngine.Engine = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].Engine");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion> supportedEngine_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion>();
                    for (int k = 0; k < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion();
                        supportedEngineVersion.Version = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].Version");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem> supportedEngineVersion_supportedCategories = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem>();
                        for (int l = 0; l < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem supportedCategoriesItem = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem();
                            supportedCategoriesItem.Category = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].Category");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType> supportedCategoriesItem_supportedStorageTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType supportedStorageType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType();
                                supportedStorageType.StorageType = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].StorageType");

                                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource> supportedStorageType_coreResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource>();
                                for (int n = 0; n < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources.Length"); n++)
                                {
                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource coreResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource();
                                    coreResource.InstanceType = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].InstanceType");
                                    coreResource.MaxCoreCount = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].MaxCoreCount");

                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_DBInstanceStorageRange dBInstanceStorageRange = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_DBInstanceStorageRange();
                                    dBInstanceStorageRange.MaxSize      = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].DBInstanceStorageRange.MaxSize");
                                    dBInstanceStorageRange.MinSize      = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].DBInstanceStorageRange.MinSize");
                                    dBInstanceStorageRange.StepSize     = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].DBInstanceStorageRange.StepSize");
                                    coreResource.DBInstanceStorageRange = dBInstanceStorageRange;

                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_InstanceTypeDetail instanceTypeDetail = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategoriesItem.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_CoreResource.DescribeAvailableResource_InstanceTypeDetail();
                                    instanceTypeDetail.Cpu          = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].InstanceTypeDetail.Cpu");
                                    instanceTypeDetail.Mem          = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategories[" + l + "].SupportedStorageTypes[" + m + "].CoreResources[" + n + "].InstanceTypeDetail.Mem");
                                    coreResource.InstanceTypeDetail = instanceTypeDetail;

                                    supportedStorageType_coreResources.Add(coreResource);
                                }
                                supportedStorageType.CoreResources = supportedStorageType_coreResources;

                                supportedCategoriesItem_supportedStorageTypes.Add(supportedStorageType);
                            }
                            supportedCategoriesItem.SupportedStorageTypes = supportedCategoriesItem_supportedStorageTypes;

                            supportedEngineVersion_supportedCategories.Add(supportedCategoriesItem);
                        }
                        supportedEngineVersion.SupportedCategories = supportedEngineVersion_supportedCategories;

                        supportedEngine_supportedEngineVersions.Add(supportedEngineVersion);
                    }
                    supportedEngine.SupportedEngineVersions = supportedEngine_supportedEngineVersions;

                    availableZone_supportedEngines.Add(supportedEngine);
                }
                availableZone.SupportedEngines = availableZone_supportedEngines;

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource> availableZone_masterResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource masterResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource();
                    masterResource.InstanceType = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources[" + j + "].InstanceType");

                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource.DescribeAvailableResource_InstanceTypeDetail1 instanceTypeDetail1 = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_MasterResource.DescribeAvailableResource_InstanceTypeDetail1();
                    instanceTypeDetail1.Cpu            = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources[" + j + "].InstanceTypeDetail.Cpu");
                    instanceTypeDetail1.Mem            = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].MasterResources[" + j + "].InstanceTypeDetail.Mem");
                    masterResource.InstanceTypeDetail1 = instanceTypeDetail1;

                    availableZone_masterResources.Add(masterResource);
                }
                availableZone.MasterResources = availableZone_masterResources;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = _ctx.HttpResponse;
            describeAvailableResourceResponse.RequestId    = _ctx.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < _ctx.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.NetworkTypes = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].NetworkTypes");
                availableZone.RegionId     = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.Status       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].Status");
                availableZone.ZoneId       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine> availableZone_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine>();
                for (int j = 0; j < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine();
                    supportedEngine.Engine = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].Engine");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion> supportedEngine_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion>();
                    for (int k = 0; k < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion();
                        supportedEngineVersion.Version = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].Version");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory> supportedEngineVersion_supportedCategorys = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory>();
                        for (int l = 0; l < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory supportedCategory = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory();
                            supportedCategory.Category = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].Category");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType> supportedCategory_supportedStorageTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType>();
                            for (int m = 0; m < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType supportedStorageType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType();
                                supportedStorageType.StorageType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].StorageType");

                                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource> supportedStorageType_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource>();
                                for (int n = 0; n < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources.Length"); n++)
                                {
                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource();
                                    availableResource.DBInstanceClass = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceClass");
                                    availableResource.StorageRange    = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].StorageRange");

                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_DBInstanceStorageRange dBInstanceStorageRange = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedCategory.DescribeAvailableResource_SupportedStorageType.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_DBInstanceStorageRange();
                                    dBInstanceStorageRange.Max  = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceStorageRange.Max");
                                    dBInstanceStorageRange.Min  = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceStorageRange.Min");
                                    dBInstanceStorageRange.Step = _ctx.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEngineVersions[" + k + "].SupportedCategorys[" + l + "].SupportedStorageTypes[" + m + "].AvailableResources[" + n + "].DBInstanceStorageRange.Step");
                                    availableResource.DBInstanceStorageRange = dBInstanceStorageRange;

                                    supportedStorageType_availableResources.Add(availableResource);
                                }
                                supportedStorageType.AvailableResources = supportedStorageType_availableResources;

                                supportedCategory_supportedStorageTypes.Add(supportedStorageType);
                            }
                            supportedCategory.SupportedStorageTypes = supportedCategory_supportedStorageTypes;

                            supportedEngineVersion_supportedCategorys.Add(supportedCategory);
                        }
                        supportedEngineVersion.SupportedCategorys = supportedEngineVersion_supportedCategorys;

                        supportedEngine_supportedEngineVersions.Add(supportedEngineVersion);
                    }
                    supportedEngine.SupportedEngineVersions = supportedEngine_supportedEngineVersions;

                    availableZone_supportedEngines.Add(supportedEngine);
                }
                availableZone.SupportedEngines = availableZone_supportedEngines;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = context.HttpResponse;
            describeAvailableResourceResponse.RequestId    = context.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < context.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId   = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion> availableZone_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion();
                    supportedEngineVersion.Version = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].Version");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine> supportedEngineVersion_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine>();
                    for (int k = 0; k < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine();
                        supportedEngine.Engine = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines[" + k + "].Engine");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType> supportedEngine_supportedNodeTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType>();
                        for (int l = 0; l < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines[" + k + "].SupportedNodeTypes.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType supportedNodeType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType();
                            supportedNodeType.NodeType     = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines[" + k + "].SupportedNodeTypes[" + l + "].NodeType");
                            supportedNodeType.NetworkTypes = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines[" + k + "].SupportedNodeTypes[" + l + "].NetworkTypes");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource> supportedNodeType_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines[" + k + "].SupportedNodeTypes[" + l + "].AvailableResources.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource();
                                availableResource.InstanceClass = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngineVersions[" + j + "].SupportedEngines[" + k + "].SupportedNodeTypes[" + l + "].AvailableResources[" + m + "].InstanceClass");

                                supportedNodeType_availableResources.Add(availableResource);
                            }
                            supportedNodeType.AvailableResources = supportedNodeType_availableResources;

                            supportedEngine_supportedNodeTypes.Add(supportedNodeType);
                        }
                        supportedEngine.SupportedNodeTypes = supportedEngine_supportedNodeTypes;

                        supportedEngineVersion_supportedEngines.Add(supportedEngine);
                    }
                    supportedEngineVersion.SupportedEngines = supportedEngineVersion_supportedEngines;

                    availableZone_supportedEngineVersions.Add(supportedEngineVersion);
                }
                availableZone.SupportedEngineVersions = availableZone_supportedEngineVersions;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = context.HttpResponse;
            describeAvailableResourceResponse.RequestId    = context.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < context.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId     = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId       = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");
                availableZone.Status       = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].Status");
                availableZone.NetworkTypes = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].NetworkTypes");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines> availableZone_supportedEngine = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines supportedEngines = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines();
                    supportedEngines.Engine = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].Engine");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions> supportedEngines_supportedEngineVersion = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions>();
                    for (int k = 0; k < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions supportedEngineVersions = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions();
                        supportedEngineVersions.Version = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].Version");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys> supportedEngineVersions_supportedCategory = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys>();
                        for (int l = 0; l < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys supportedCategorys = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys();
                            supportedCategorys.Category = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory[" + l + "].Category");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes> supportedCategorys_supportedStorageType = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory[" + l + "].SupportedStorageType.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes supportedStorageTypes = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes();
                                supportedStorageTypes.StorageType = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory[" + l + "].SupportedStorageType[" + m + "].StorageType");

                                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes.DescribeAvailableResource_AvailableResources> supportedStorageTypes_availableResource = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes.DescribeAvailableResource_AvailableResources>();
                                for (int n = 0; n < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory[" + l + "].SupportedStorageType[" + m + "].AvailableResource.Length"); n++)
                                {
                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes.DescribeAvailableResource_AvailableResources availableResources = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngines.DescribeAvailableResource_SupportedEngineVersions.DescribeAvailableResource_SupportedCategorys.DescribeAvailableResource_SupportedStorageTypes.DescribeAvailableResource_AvailableResources();
                                    availableResources.DBInstanceClass = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory[" + l + "].SupportedStorageType[" + m + "].AvailableResource[" + n + "].DBInstanceClass");
                                    availableResources.StorageRange    = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngine[" + j + "].SupportedEngineVersion[" + k + "].SupportedCategory[" + l + "].SupportedStorageType[" + m + "].AvailableResource[" + n + "].StorageRange");

                                    supportedStorageTypes_availableResource.Add(availableResources);
                                }
                                supportedStorageTypes.AvailableResource = supportedStorageTypes_availableResource;

                                supportedCategorys_supportedStorageType.Add(supportedStorageTypes);
                            }
                            supportedCategorys.SupportedStorageType = supportedCategorys_supportedStorageType;

                            supportedEngineVersions_supportedCategory.Add(supportedCategorys);
                        }
                        supportedEngineVersions.SupportedCategory = supportedEngineVersions_supportedCategory;

                        supportedEngines_supportedEngineVersion.Add(supportedEngineVersions);
                    }
                    supportedEngines.SupportedEngineVersion = supportedEngines_supportedEngineVersion;

                    availableZone_supportedEngine.Add(supportedEngines);
                }
                availableZone.SupportedEngine = availableZone_supportedEngine;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = _ctx.HttpResponse;
            describeAvailableResourceResponse.RequestId    = _ctx.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < _ctx.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId     = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");
                availableZone.Status       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].Status");
                availableZone.NetworkTypes = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].NetworkTypes");
                availableZone.ZoneName     = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneName");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine> availableZone_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine>();
                for (int j = 0; j < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine();
                    supportedEngine.Engine = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].Engine");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType> supportedEngine_supportedEditionTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType>();
                    for (int k = 0; k < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType supportedEditionType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType();
                        supportedEditionType.EditionType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].EditionType");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType> supportedEditionType_supportedSeriesTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType>();
                        for (int l = 0; l < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType supportedSeriesType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType();
                            supportedSeriesType.SeriesType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SeriesType");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion> supportedSeriesType_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion>();
                            for (int m = 0; m < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion();
                                supportedEngineVersion.Version = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].Version");

                                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType> supportedEngineVersion_supportedArchitectureTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType>();
                                for (int n = 0; n < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes.Length"); n++)
                                {
                                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType supportedArchitectureType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType();
                                    supportedArchitectureType.Architecture = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].Architecture");

                                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber> supportedArchitectureType_supportedShardNumbers = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber>();
                                    for (int o = 0; o < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers.Length"); o++)
                                    {
                                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber supportedShardNumber = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber();
                                        supportedShardNumber.ShardNumber = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers[" + o + "].ShardNumber");

                                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType> supportedShardNumber_supportedNodeTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType>();
                                        for (int p = 0; p < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers[" + o + "].SupportedNodeTypes.Length"); p++)
                                        {
                                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType supportedNodeType = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType();
                                            supportedNodeType.SupportedNodeType = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers[" + o + "].SupportedNodeTypes[" + p + "].SupportedNodeType");

                                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource> supportedNodeType_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource>();
                                            for (int q = 0; q < _ctx.Length("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers[" + o + "].SupportedNodeTypes[" + p + "].AvailableResources.Length"); q++)
                                            {
                                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedEditionType.DescribeAvailableResource_SupportedSeriesType.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedArchitectureType.DescribeAvailableResource_SupportedShardNumber.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource();
                                                availableResource.InstanceClass       = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers[" + o + "].SupportedNodeTypes[" + p + "].AvailableResources[" + q + "].InstanceClass");
                                                availableResource.InstanceClassRemark = _ctx.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].SupportedEngines[" + j + "].SupportedEditionTypes[" + k + "].SupportedSeriesTypes[" + l + "].SupportedEngineVersions[" + m + "].SupportedArchitectureTypes[" + n + "].SupportedShardNumbers[" + o + "].SupportedNodeTypes[" + p + "].AvailableResources[" + q + "].InstanceClassRemark");

                                                supportedNodeType_availableResources.Add(availableResource);
                                            }
                                            supportedNodeType.AvailableResources = supportedNodeType_availableResources;

                                            supportedShardNumber_supportedNodeTypes.Add(supportedNodeType);
                                        }
                                        supportedShardNumber.SupportedNodeTypes = supportedShardNumber_supportedNodeTypes;

                                        supportedArchitectureType_supportedShardNumbers.Add(supportedShardNumber);
                                    }
                                    supportedArchitectureType.SupportedShardNumbers = supportedArchitectureType_supportedShardNumbers;

                                    supportedEngineVersion_supportedArchitectureTypes.Add(supportedArchitectureType);
                                }
                                supportedEngineVersion.SupportedArchitectureTypes = supportedEngineVersion_supportedArchitectureTypes;

                                supportedSeriesType_supportedEngineVersions.Add(supportedEngineVersion);
                            }
                            supportedSeriesType.SupportedEngineVersions = supportedSeriesType_supportedEngineVersions;

                            supportedEditionType_supportedSeriesTypes.Add(supportedSeriesType);
                        }
                        supportedEditionType.SupportedSeriesTypes = supportedEditionType_supportedSeriesTypes;

                        supportedEngine_supportedEditionTypes.Add(supportedEditionType);
                    }
                    supportedEngine.SupportedEditionTypes = supportedEngine_supportedEditionTypes;

                    availableZone_supportedEngines.Add(supportedEngine);
                }
                availableZone.SupportedEngines = availableZone_supportedEngines;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }
Example #7
0
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = context.HttpResponse;
            describeAvailableResourceResponse.RequestId    = context.StringValue("DescribeAvailableResource.RequestId");
            describeAvailableResourceResponse.RegionId     = context.StringValue("DescribeAvailableResource.RegionId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZoneList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < context.Length("DescribeAvailableResource.AvailableZoneList.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.ZoneId = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].ZoneId");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem> availableZone_supportedMode = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem supportedModeItem = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem();
                    supportedModeItem.Mode = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].Mode");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem> supportedModeItem_supportedSerialList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem>();
                    for (int k = 0; k < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem supportedSerialListItem = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem();
                        supportedSerialListItem.Serial = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].Serial");

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedFlexibleResourceItem> supportedSerialListItem_supportedFlexibleResource = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedFlexibleResourceItem>();
                        for (int l = 0; l < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedFlexibleResource.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedFlexibleResourceItem supportedFlexibleResourceItem = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedFlexibleResourceItem();
                            supportedFlexibleResourceItem.StorageType = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedFlexibleResource[" + l + "].StorageType");

                            List <string> supportedFlexibleResourceItem_supportedStorageResource = new List <string>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedFlexibleResource[" + l + "].SupportedStorageResource.Length"); m++)
                            {
                                supportedFlexibleResourceItem_supportedStorageResource.Add(context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedFlexibleResource[" + l + "].SupportedStorageResource[" + m + "]"));
                            }
                            supportedFlexibleResourceItem.SupportedStorageResource = supportedFlexibleResourceItem_supportedStorageResource;

                            List <string> supportedFlexibleResourceItem_supportedComputeResource = new List <string>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedFlexibleResource[" + l + "].SupportedComputeResource.Length"); m++)
                            {
                                supportedFlexibleResourceItem_supportedComputeResource.Add(context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedFlexibleResource[" + l + "].SupportedComputeResource[" + m + "]"));
                            }
                            supportedFlexibleResourceItem.SupportedComputeResource = supportedFlexibleResourceItem_supportedComputeResource;

                            supportedSerialListItem_supportedFlexibleResource.Add(supportedFlexibleResourceItem);
                        }
                        supportedSerialListItem.SupportedFlexibleResource = supportedSerialListItem_supportedFlexibleResource;

                        List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass> supportedSerialListItem_supportedInstanceClassList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass>();
                        for (int l = 0; l < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList.Length"); l++)
                        {
                            DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass supportedInstanceClass = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass();
                            supportedInstanceClass.InstanceClass = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].InstanceClass");
                            supportedInstanceClass.Tips          = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].Tips");

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount> supportedInstanceClass_supportedNodeCountList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedNodeCountList.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount supportedNodeCount = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount();

                                List <string> supportedNodeCount_storageSize = new List <string>();
                                for (int n = 0; n < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedNodeCountList[" + m + "].StorageSize.Length"); n++)
                                {
                                    supportedNodeCount_storageSize.Add(context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedNodeCountList[" + m + "].StorageSize[" + n + "]"));
                                }
                                supportedNodeCount.StorageSize = supportedNodeCount_storageSize;

                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount.DescribeAvailableResource_NodeCount nodeCount = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedNodeCount.DescribeAvailableResource_NodeCount();
                                nodeCount.MinCount           = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedNodeCountList[" + m + "].NodeCount.MinCount");
                                nodeCount.MaxCount           = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedNodeCountList[" + m + "].NodeCount.MaxCount");
                                nodeCount.Step               = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedNodeCountList[" + m + "].NodeCount.Step");
                                supportedNodeCount.NodeCount = nodeCount;

                                supportedInstanceClass_supportedNodeCountList.Add(supportedNodeCount);
                            }
                            supportedInstanceClass.SupportedNodeCountList = supportedInstanceClass_supportedNodeCountList;

                            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedExecutor> supportedInstanceClass_supportedExecutorList = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedExecutor>();
                            for (int m = 0; m < context.Length("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedExecutorList.Length"); m++)
                            {
                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedExecutor supportedExecutor = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedExecutor();

                                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedExecutor.DescribeAvailableResource_NodeCount1 nodeCount1 = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedModeItem.DescribeAvailableResource_SupportedSerialListItem.DescribeAvailableResource_SupportedInstanceClass.DescribeAvailableResource_SupportedExecutor.DescribeAvailableResource_NodeCount1();
                                nodeCount1.MinCount          = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedExecutorList[" + m + "].NodeCount.MinCount");
                                nodeCount1.MaxCount          = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedExecutorList[" + m + "].NodeCount.MaxCount");
                                nodeCount1.Step              = context.StringValue("DescribeAvailableResource.AvailableZoneList[" + i + "].SupportedMode[" + j + "].SupportedSerialList[" + k + "].SupportedInstanceClassList[" + l + "].SupportedExecutorList[" + m + "].NodeCount.Step");
                                supportedExecutor.NodeCount1 = nodeCount1;

                                supportedInstanceClass_supportedExecutorList.Add(supportedExecutor);
                            }
                            supportedInstanceClass.SupportedExecutorList = supportedInstanceClass_supportedExecutorList;

                            supportedSerialListItem_supportedInstanceClassList.Add(supportedInstanceClass);
                        }
                        supportedSerialListItem.SupportedInstanceClassList = supportedSerialListItem_supportedInstanceClassList;

                        supportedModeItem_supportedSerialList.Add(supportedSerialListItem);
                    }
                    supportedModeItem.SupportedSerialList = supportedModeItem_supportedSerialList;

                    availableZone_supportedMode.Add(supportedModeItem);
                }
                availableZone.SupportedMode = availableZone_supportedMode;

                describeAvailableResourceResponse_availableZoneList.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZoneList = describeAvailableResourceResponse_availableZoneList;

            return(describeAvailableResourceResponse);
        }
Example #8
0
        public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse();

            describeAvailableResourceResponse.HttpResponse = context.HttpResponse;
            describeAvailableResourceResponse.RequestId    = context.StringValue("DescribeAvailableResource.RequestId");

            List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone> describeAvailableResourceResponse_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone>();

            for (int i = 0; i < context.Length("DescribeAvailableResource.AvailableZones.Length"); i++)
            {
                DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone();
                availableZone.RegionId = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].RegionId");
                availableZone.ZoneId   = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].ZoneId");
                availableZone.Status   = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].Status");

                List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource> availableZone_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource>();
                for (int j = 0; j < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources.Length"); j++)
                {
                    DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource();
                    availableResource.Type = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].Type");

                    List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportedResource> availableResource_supportedResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportedResource>();
                    for (int k = 0; k < context.Length("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources.Length"); k++)
                    {
                        DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportedResource supportedResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportedResource();
                        supportedResource._Value = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources[" + k + "].Value");
                        supportedResource.Status = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources[" + k + "].Status");
                        supportedResource.Min    = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources[" + k + "].Min");
                        supportedResource.Max    = context.IntegerValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources[" + k + "].Max");
                        supportedResource.Unit   = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources[" + k + "].Unit");

                        availableResource_supportedResources.Add(supportedResource);
                    }
                    availableResource.SupportedResources = availableResource_supportedResources;

                    availableZone_availableResources.Add(availableResource);
                }
                availableZone.AvailableResources = availableZone_availableResources;

                describeAvailableResourceResponse_availableZones.Add(availableZone);
            }
            describeAvailableResourceResponse.AvailableZones = describeAvailableResourceResponse_availableZones;

            return(describeAvailableResourceResponse);
        }