public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext _ctx) { DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse(); describeAvailableResourceResponse.HttpResponse = _ctx.HttpResponse; describeAvailableResourceResponse.RequestId = _ctx.StringValue("DescribeAvailableResource.RequestId"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource> describeAvailableResourceResponse_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource>(); for (int i = 0; i < _ctx.Length("DescribeAvailableResource.AvailableResources.Length"); i++) { DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource(); availableResource.MasterZoneId = _ctx.StringValue("DescribeAvailableResource.AvailableResources[" + i + "].MasterZoneId"); availableResource.SlaveZoneId = _ctx.StringValue("DescribeAvailableResource.AvailableResources[" + i + "].SlaveZoneId"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportResource> availableResource_supportResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportResource>(); for (int j = 0; j < _ctx.Length("DescribeAvailableResource.AvailableResources[" + i + "].SupportResources.Length"); j++) { DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportResource supportResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_AvailableResource.DescribeAvailableResource_SupportResource(); supportResource.AddressType = _ctx.StringValue("DescribeAvailableResource.AvailableResources[" + i + "].SupportResources[" + j + "].AddressType"); supportResource.AddressIPVersion = _ctx.StringValue("DescribeAvailableResource.AvailableResources[" + i + "].SupportResources[" + j + "].AddressIPVersion"); availableResource_supportResources.Add(supportResource); } availableResource.SupportResources = availableResource_supportResources; describeAvailableResourceResponse_availableResources.Add(availableResource); } describeAvailableResourceResponse.AvailableResources = describeAvailableResourceResponse_availableResources; return(describeAvailableResourceResponse); }
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"); availableZone.Status = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].Status"); availableZone.StatusCategory = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].StatusCategory"); 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.StatusCategory = context.StringValue("DescribeAvailableResource.AvailableZones[" + i + "].AvailableResources[" + j + "].SupportedResources[" + k + "].StatusCategory"); 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); }
public static DescribeAvailableResourceResponse Unmarshall(UnmarshallerContext context) { DescribeAvailableResourceResponse describeAvailableResourceResponse = new DescribeAvailableResourceResponse(); describeAvailableResourceResponse.HttpResponse = context.HttpResponse; describeAvailableResourceResponse.RequestId = context.StringValue("DescribeAvailableResource.RequestId"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType> describeAvailableResourceResponse_supportedDBTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType>(); for (int i = 0; i < context.Length("DescribeAvailableResource.SupportedDBTypes.Length"); i++) { DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType supportedDBType = new DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType(); supportedDBType.DbType = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].DbType"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone> supportedDBType_availableZones = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone>(); for (int j = 0; j < context.Length("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones.Length"); j++) { DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone availableZone = new DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone(); availableZone.RegionId = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].RegionId"); availableZone.ZoneId = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].ZoneId"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion> availableZone_supportedEngineVersions = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion>(); for (int k = 0; k < context.Length("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions.Length"); k++) { DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion supportedEngineVersion = new DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion(); supportedEngineVersion.Version = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].Version"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine> supportedEngineVersion_supportedEngines = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine>(); for (int l = 0; l < context.Length("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines.Length"); l++) { DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine supportedEngine = new DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine(); supportedEngine.Engine = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].Engine"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType> supportedEngine_supportedNodeTypes = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType>(); for (int m = 0; m < context.Length("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].SupportedNodeTypes.Length"); m++) { DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType supportedNodeType = new DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType(); supportedNodeType.NodeType = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].SupportedNodeTypes[" + m + "].NodeType"); supportedNodeType.NetworkTypes = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].SupportedNodeTypes[" + m + "].NetworkTypes"); List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource> supportedNodeType_availableResources = new List <DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource>(); for (int n = 0; n < context.Length("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].SupportedNodeTypes[" + m + "].AvailableResources.Length"); n++) { DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource availableResource = new DescribeAvailableResourceResponse.DescribeAvailableResource_SupportedDBType.DescribeAvailableResource_AvailableZone.DescribeAvailableResource_SupportedEngineVersion.DescribeAvailableResource_SupportedEngine.DescribeAvailableResource_SupportedNodeType.DescribeAvailableResource_AvailableResource(); availableResource.InstanceClass = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].SupportedNodeTypes[" + m + "].AvailableResources[" + n + "].InstanceClass"); availableResource.InstanceClassRemark = context.StringValue("DescribeAvailableResource.SupportedDBTypes[" + i + "].AvailableZones[" + j + "].SupportedEngineVersions[" + k + "].SupportedEngines[" + l + "].SupportedNodeTypes[" + m + "].AvailableResources[" + n + "].InstanceClassRemark"); 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; supportedDBType_availableZones.Add(availableZone); } supportedDBType.AvailableZones = supportedDBType_availableZones; describeAvailableResourceResponse_supportedDBTypes.Add(supportedDBType); } describeAvailableResourceResponse.SupportedDBTypes = describeAvailableResourceResponse_supportedDBTypes; 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_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 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); }
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); }
private static void Main(string[] args) { var accessKey = Environment.GetEnvironmentVariable("ACCESS_KEY_ID") ?? "AccessKeyId"; var accessKeySecret = Environment.GetEnvironmentVariable("ACCESS_KEY_SECRET") ?? "AccessKeySecret"; //DefaultProfile.AddEndpoint ("cn-hangzhou", "cn-hangzhou", "industry_brain", "industrial-brain.cn-hangzhou.aliyuncs.com"); //IClientProfile profile = DefaultProfile.GetProfile("cn-shanghai", accessKey, accessKeySecret); //DefaultAcsClient client = new DefaultAcsClient(profile); var client = InitVodClient(accessKey, accessKeySecret); #region commend code // var request = new SubmitJobsRequest(); // request.Input="{\"Bucket\":\"sgfa-sdf\",\"Location\":\"oss-cn-hangzhou\",\"Object\":\"test.flv\"}"; // request.OutputBucket = "bucket-output-template"; // request.OutputLocation="oss-cn-hangzhou"; // request.PipelineId = "testpinpsfsd"; // request.Outputs = "[{\"OutputObject\":\"test-output.flv\",\"TemplateId\":\"testtempalte\",\"UserData\":\"testid-001\"}]"; //AddImageRequest request = new AddImageRequest(); //request.InstanceName = "testinstance"; //request.ProductId = "test"; //request.PicName = "test"; //byte[] img = System.IO.File.ReadAllBytes("D:/test.jpg"); //string pic = Convert.ToBase64String(img); //request.PicContent = pic; // var items = new List<dynamic> (); // dynamic obj = new ExpandoObject (); // obj.key = "LightAdjustLevel"; // obj.value = 1; // items.Add (obj); // request.ProductKey = "a1LsCUpgf5n"; // request.DeviceName = "yinxi-test"; // var jsonItem = JsonConvert.SerializeObject("items"); // Console.WriteLine(jsonItem); // jsonItem = "{LightAdjustLevel:1}"; // request.Items = jsonItem; //var request = new QueryDevicePropertyStatusRequest(); //request.ProductKey = "a1xplY8eBQT"; //request.DeviceName = "SzAfkec0rv0RgfdnicbK"; //var request = new SetDevicePropertyRequest(); //request.ProductKey = "a1xplY8eBQT"; //request.DeviceName = "SzAfkec0rv0RgfdnicbK"; //request.Items = "{\"AlarmText\":\"E7BB93E69D9FE5BE85E69CBAE4B8AD20202020202020202020202020202020202020202020202020202020202030303830202020202020202020202020202020207C4F50454E2054484520444F4F52205448454E20434C4F5345207C\"}"; // var request = new CreateUploadVideoRequest(); // request.FileName = "03552d1d9235583a5e20ce3b677ea176.mp4"; // request.Title = null; #endregion // var request = new FindSimilarFacesRequest(); // var request = new DescribeAccessPointsRequest(); // var filter = new DescribeAccessPointsRequest.Filter(); // filter.Key = "RegionId"; // filter.Values = new List<string> { "cn-hangzhou" }; // // var filterList = new List<DescribeAccessPointsRequest.Filter> { filter }; // // request.Filters = filterList; // CommonRequest request = new CommonRequest(); // request.Method = MethodType.POST; // request.Domain = "metrics.cn-hangzhou.aliyuncs.com"; // request.Version = "2019-01-01"; // request.Action = "DescribeMetricLast"; // // request.AddQueryParameters("MetricName", "CPUUtilization"); // request.AddQueryParameters("Namespace", "acs_ecs_dashboard"); // request.AddQueryParameters("PhoneNumbers","xx"); // request.AddQueryParameters("SignName","李刚"); // request.AddQueryParameters("TemplateCode","xx"); // request.AddQueryParameters("TemplateParam","{\"code\":\"3433\"}"); // var request = new QueryMetricDataRequest(); //var request = new GetPlayInfoRequest(); //request.VideoId = "your video id"; //var log = new LoggerConfiguration() // .Enrich.WithExceptionDetails() // .WriteTo.ColoredConsole( // outputTemplate: "[{Timestamp:yyyy-MM-dd HH:mm:ss}] [{Level}] {Message}{NewLine}{Exception}") // .CreateLogger(); //Log.Logger = log; //log.Information("From Client Test."); //XmlDocument log4netConfig = new XmlDocument(); //log4netConfig.Load(File.OpenRead("log4net.config")); //var repo = log4net.LogManager.CreateRepository(Assembly.GetEntryAssembly(), // typeof(log4net.Repository.Hierarchy.Hierarchy)); //XmlConfigurator.Configure(repo, log4netConfig["log4net"]); //ILog log = LogManager.GetLogger(typeof(Program)); //log.Error("Cleint Error."); //var config = new LoggingConfiguration(); //// Targets where to log to: File and Console //var logfile = new FileTarget("logfile") { FileName = "file.txt" }; //var logconsole = new ConsoleTarget("logconsole"); //// Rules for mapping loggers to targets //config.AddRule(LogLevel.Info, LogLevel.Fatal, logconsole); //config.AddRule(LogLevel.Debug, LogLevel.Fatal, logfile); //// Apply config //LogManager.Configuration = config; //var Logger = LogManager.GetCurrentClassLogger(); //Logger.Info("Test this is from client logger."); //DefaultAcsClient.EnableLogger(); //var uri = new Uri( // "http://ecs.aliyuncs.com/?Version=2014-05-26&Action=DescribeRegions&Format=JSON&Timestamp=2019-07-25T09%3a12%3a12Z&SignatureMethod=HMAC-SHA1&SignatureVersion=1.0&SignatureNonce=03e02480-68f2-421f-9f5e-e64971798eb0"); //Console.WriteLine(uri.Host); //int num = 5; //var tasks = new Task[num]; //DescribeRegionsResponse[] responses = new DescribeRegionsResponse[num]; var request = new DescribeAvailableResourceRequest(); request.DestinationResource = "InstanceType"; request.RegionId = "cn-hangzhou"; try { //client.SetConnectTimeoutInMilliSeconds(50000); //client.SetReadTimeoutInMilliSeconds(50000); //for (int i = 0; i < num; i++) //{ // int temp = i; // tasks[temp] = Task.Run(() => // { // var request = new DescribeRegionsRequest(); // var response = client.GetAcsResponse(request); // //Console.WriteLine(Encoding.UTF8.GetString(response.HttpResponse.Content)); // }); //} //Task.WaitAll(tasks); DescribeAvailableResourceResponse response = client.GetAcsResponse(request); foreach (var item in response.AvailableZones) { foreach (var item2 in item.AvailableResources) { foreach (var item3 in item2.SupportedResources) { Console.WriteLine(item3._Value); } } } } catch (ServerException e) { Console.WriteLine(e); } catch (ClientException e) { Console.WriteLine(e); } }