in src/EHPC/V20180412/EHPCApiResolver.php [2720:2824]
public function withQueues(array $queues)
{
$this->data['Queues'] = $queues;
foreach ($queues as $depth1 => $depth1Value) {
if(isset($depth1Value['QueueName'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.QueueName'] = $depth1Value['QueueName'];
}
if(isset($depth1Value['SystemDiskLevel'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.SystemDiskLevel'] = $depth1Value['SystemDiskLevel'];
}
if(isset($depth1Value['SortedByInventory'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.SortedByInventory'] = $depth1Value['SortedByInventory'];
}
foreach ($depth1Value['InstanceTypes'] as $depth2 => $depth2Value) {
if(isset($depth2Value['VSwitchId'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.VSwitchId'] = $depth2Value['VSwitchId'];
}
if(isset($depth2Value['SpotStrategy'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotStrategy'] = $depth2Value['SpotStrategy'];
}
if(isset($depth2Value['SpotInterruptionBehavior'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotInterruptionBehavior'] = $depth2Value['SpotInterruptionBehavior'];
}
if(isset($depth2Value['ZoneId'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.ZoneId'] = $depth2Value['ZoneId'];
}
if(isset($depth2Value['InstanceType'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.InstanceType'] = $depth2Value['InstanceType'];
}
if(isset($depth2Value['SpotPriceLimit'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotPriceLimit'] = $depth2Value['SpotPriceLimit'];
}
if(isset($depth2Value['SpotDuration'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceTypes.' . ($depth2 + 1) . '.SpotDuration'] = $depth2Value['SpotDuration'];
}
}
if(isset($depth1Value['EnableAutoGrow'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.EnableAutoGrow'] = $depth1Value['EnableAutoGrow'];
}
if(isset($depth1Value['HostNameSuffix'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.HostNameSuffix'] = $depth1Value['HostNameSuffix'];
}
if(isset($depth1Value['SpotPriceLimit'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.SpotPriceLimit'] = $depth1Value['SpotPriceLimit'];
}
if(isset($depth1Value['EnableAutoShrink'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.EnableAutoShrink'] = $depth1Value['EnableAutoShrink'];
}
if(isset($depth1Value['SpotStrategy'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.SpotStrategy'] = $depth1Value['SpotStrategy'];
}
if(isset($depth1Value['AutoMinNodesPerCycle'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.AutoMinNodesPerCycle'] = $depth1Value['AutoMinNodesPerCycle'];
}
foreach ($depth1Value['DataDisks'] as $depth2 => $depth2Value) {
if(isset($depth2Value['DataDiskDeleteWithInstance'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskDeleteWithInstance'] = $depth2Value['DataDiskDeleteWithInstance'];
}
if(isset($depth2Value['DataDiskEncrypted'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskEncrypted'] = $depth2Value['DataDiskEncrypted'];
}
if(isset($depth2Value['DataDiskKMSKeyId'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskKMSKeyId'] = $depth2Value['DataDiskKMSKeyId'];
}
if(isset($depth2Value['DataDiskSize'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskSize'] = $depth2Value['DataDiskSize'];
}
if(isset($depth2Value['DataDiskCategory'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskCategory'] = $depth2Value['DataDiskCategory'];
}
if(isset($depth2Value['DataDiskPerformanceLevel'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.DataDisks.' . ($depth2 + 1) . '.DataDiskPerformanceLevel'] = $depth2Value['DataDiskPerformanceLevel'];
}
}
if(isset($depth1Value['MinNodesInQueue'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.MinNodesInQueue'] = $depth1Value['MinNodesInQueue'];
}
if(isset($depth1Value['MaxNodesPerCycle'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.MaxNodesPerCycle'] = $depth1Value['MaxNodesPerCycle'];
}
if(isset($depth1Value['SystemDiskCategory'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.SystemDiskCategory'] = $depth1Value['SystemDiskCategory'];
}
if(isset($depth1Value['MaxNodesInQueue'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.MaxNodesInQueue'] = $depth1Value['MaxNodesInQueue'];
}
if(isset($depth1Value['SystemDiskSize'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.SystemDiskSize'] = $depth1Value['SystemDiskSize'];
}
if(isset($depth1Value['QueueImageId'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.QueueImageId'] = $depth1Value['QueueImageId'];
}
if(isset($depth1Value['InstanceType'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.InstanceType'] = $depth1Value['InstanceType'];
}
if(isset($depth1Value['HostNamePrefix'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.HostNamePrefix'] = $depth1Value['HostNamePrefix'];
}
if(isset($depth1Value['MinNodesPerCycle'])){
$this->options['query']['Queues.' . ($depth1 + 1) . '.MinNodesPerCycle'] = $depth1Value['MinNodesPerCycle'];
}
}
return $this;
}