public function withContainer()

in src/Ess/V20140828/EssApiResolver.php [619:809]


	public function withContainer(array $container)
	{
	    $this->data['Container'] = $container;
		foreach ($container as $depth1 => $depth1Value) {
			if(isset($depth1Value['Stdin'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Stdin'] = $depth1Value['Stdin'];
			}
			foreach ($depth1Value['LivenessProbeExecCommand'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.Exec.Command.' . ($i + 1)] = $iValue;
			}
			if(isset($depth1Value['LifecyclePostStartHandlerHttpGetPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerHttpGetPort'] = $depth1Value['LifecyclePostStartHandlerHttpGetPort'];
			}
			if(isset($depth1Value['WorkingDir'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.WorkingDir'] = $depth1Value['WorkingDir'];
			}
			if(isset($depth1Value['ReadinessProbeHttpGetPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Port'] = $depth1Value['ReadinessProbeHttpGetPort'];
			}
			if(isset($depth1Value['LivenessProbeHttpGetPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Port'] = $depth1Value['LivenessProbeHttpGetPort'];
			}
			if(isset($depth1Value['LifecyclePreStopHandlerTcpSocketPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerTcpSocketPort'] = $depth1Value['LifecyclePreStopHandlerTcpSocketPort'];
			}
			foreach ($depth1Value['VolumeMount'] as $depth2 => $depth2Value) {
				if(isset($depth2Value['MountPath'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.MountPath'] = $depth2Value['MountPath'];
				}
				if(isset($depth2Value['ReadOnly'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.ReadOnly'] = $depth2Value['ReadOnly'];
				}
				if(isset($depth2Value['MountPropagation'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.MountPropagation'] = $depth2Value['MountPropagation'];
				}
				if(isset($depth2Value['Name'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.Name'] = $depth2Value['Name'];
				}
				if(isset($depth2Value['SubPath'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.VolumeMount.' . ($depth2 + 1) . '.SubPath'] = $depth2Value['SubPath'];
				}
			}
			if(isset($depth1Value['Image'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Image'] = $depth1Value['Image'];
			}
			foreach ($depth1Value['LifecyclePostStartHandlerExec'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerExec.' . ($i + 1)] = $iValue;
			}
			if(isset($depth1Value['Cpu'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Cpu'] = $depth1Value['Cpu'];
			}
			if(isset($depth1Value['ReadinessProbeHttpGetPath'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Path'] = $depth1Value['ReadinessProbeHttpGetPath'];
			}
			if(isset($depth1Value['Gpu'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Gpu'] = $depth1Value['Gpu'];
			}
			if(isset($depth1Value['StdinOnce'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.StdinOnce'] = $depth1Value['StdinOnce'];
			}
			if(isset($depth1Value['LifecyclePostStartHandlerTcpSocketHost'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerTcpSocketHost'] = $depth1Value['LifecyclePostStartHandlerTcpSocketHost'];
			}
			if(isset($depth1Value['LivenessProbeSuccessThreshold'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.SuccessThreshold'] = $depth1Value['LivenessProbeSuccessThreshold'];
			}
			if(isset($depth1Value['SecurityContextRunAsUser'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.RunAsUser'] = $depth1Value['SecurityContextRunAsUser'];
			}
			if(isset($depth1Value['LivenessProbePeriodSeconds'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.PeriodSeconds'] = $depth1Value['LivenessProbePeriodSeconds'];
			}
			if(isset($depth1Value['LivenessProbeInitialDelaySeconds'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.InitialDelaySeconds'] = $depth1Value['LivenessProbeInitialDelaySeconds'];
			}
			foreach ($depth1Value['Port'] as $depth2 => $depth2Value) {
				if(isset($depth2Value['Protocol'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Protocol'] = $depth2Value['Protocol'];
				}
				if(isset($depth2Value['Port'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.Port.' . ($depth2 + 1) . '.Port'] = $depth2Value['Port'];
				}
			}
			if(isset($depth1Value['Name'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Name'] = $depth1Value['Name'];
			}
			if(isset($depth1Value['LifecyclePreStopHandlerTcpSocketHost'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerTcpSocketHost'] = $depth1Value['LifecyclePreStopHandlerTcpSocketHost'];
			}
			if(isset($depth1Value['SecurityContextReadOnlyRootFilesystem'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.ReadOnlyRootFilesystem'] = $depth1Value['SecurityContextReadOnlyRootFilesystem'];
			}
			if(isset($depth1Value['LifecyclePreStopHandlerHttpGetHost'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerHttpGetHost'] = $depth1Value['LifecyclePreStopHandlerHttpGetHost'];
			}
			if(isset($depth1Value['Memory'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Memory'] = $depth1Value['Memory'];
			}
			if(isset($depth1Value['LifecyclePreStopHandlerHttpGetScheme'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerHttpGetScheme'] = $depth1Value['LifecyclePreStopHandlerHttpGetScheme'];
			}
			if(isset($depth1Value['LifecyclePostStartHandlerTcpSocketPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerTcpSocketPort'] = $depth1Value['LifecyclePostStartHandlerTcpSocketPort'];
			}
			if(isset($depth1Value['LifecyclePreStopHandlerHttpGetPath'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerHttpGetPath'] = $depth1Value['LifecyclePreStopHandlerHttpGetPath'];
			}
			if(isset($depth1Value['LifecyclePostStartHandlerHttpGetHost'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerHttpGetHost'] = $depth1Value['LifecyclePostStartHandlerHttpGetHost'];
			}
			if(isset($depth1Value['ReadinessProbeFailureThreshold'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.FailureThreshold'] = $depth1Value['ReadinessProbeFailureThreshold'];
			}
			foreach ($depth1Value['Arg'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.Arg.' . ($i + 1)] = $iValue;
			}
			if(isset($depth1Value['ReadinessProbeSuccessThreshold'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.SuccessThreshold'] = $depth1Value['ReadinessProbeSuccessThreshold'];
			}
			if(isset($depth1Value['LifecyclePostStartHandlerHttpGetPath'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerHttpGetPath'] = $depth1Value['LifecyclePostStartHandlerHttpGetPath'];
			}
			foreach ($depth1Value['LifecyclePreStopHandlerExec'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerExec.' . ($i + 1)] = $iValue;
			}
			foreach ($depth1Value['SecurityContextCapabilityAdd'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.SecurityContext.Capability.Add.' . ($i + 1)] = $iValue;
			}
			if(isset($depth1Value['ReadinessProbeInitialDelaySeconds'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.InitialDelaySeconds'] = $depth1Value['ReadinessProbeInitialDelaySeconds'];
			}
			foreach ($depth1Value['ReadinessProbeExecCommand'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.Exec.Command.' . ($i + 1)] = $iValue;
			}
			if(isset($depth1Value['ReadinessProbeHttpGetScheme'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.HttpGet.Scheme'] = $depth1Value['ReadinessProbeHttpGetScheme'];
			}
			if(isset($depth1Value['LifecyclePreStopHandlerHttpGetPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePreStopHandlerHttpGetPort'] = $depth1Value['LifecyclePreStopHandlerHttpGetPort'];
			}
			if(isset($depth1Value['ImagePullPolicy'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ImagePullPolicy'] = $depth1Value['ImagePullPolicy'];
			}
			foreach ($depth1Value['Command'] as $i => $iValue) {
				$this->options['query']['Container.' . ($depth1 + 1) . '.Command.' . ($i + 1)] = $iValue;
			}
			if(isset($depth1Value['LivenessProbeHttpGetPath'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Path'] = $depth1Value['LivenessProbeHttpGetPath'];
			}
			if(isset($depth1Value['LifecyclePostStartHandlerHttpGetScheme'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LifecyclePostStartHandlerHttpGetScheme'] = $depth1Value['LifecyclePostStartHandlerHttpGetScheme'];
			}
			if(isset($depth1Value['LivenessProbeTimeoutSeconds'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.TimeoutSeconds'] = $depth1Value['LivenessProbeTimeoutSeconds'];
			}
			if(isset($depth1Value['LivenessProbeTcpSocketPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.TcpSocket.Port'] = $depth1Value['LivenessProbeTcpSocketPort'];
			}
			if(isset($depth1Value['ReadinessProbePeriodSeconds'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.PeriodSeconds'] = $depth1Value['ReadinessProbePeriodSeconds'];
			}
			foreach ($depth1Value['EnvironmentVar'] as $depth2 => $depth2Value) {
				if(isset($depth2Value['FieldRefFieldPath'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.FieldRefFieldPath'] = $depth2Value['FieldRefFieldPath'];
				}
				if(isset($depth2Value['Value'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Value'] = $depth2Value['Value'];
				}
				if(isset($depth2Value['Key'])){
					$this->options['query']['Container.' . ($depth1 + 1) . '.EnvironmentVar.' . ($depth2 + 1) . '.Key'] = $depth2Value['Key'];
				}
			}
			if(isset($depth1Value['Tty'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.Tty'] = $depth1Value['Tty'];
			}
			if(isset($depth1Value['LivenessProbeFailureThreshold'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.FailureThreshold'] = $depth1Value['LivenessProbeFailureThreshold'];
			}
			if(isset($depth1Value['ReadinessProbeTimeoutSeconds'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.TimeoutSeconds'] = $depth1Value['ReadinessProbeTimeoutSeconds'];
			}
			if(isset($depth1Value['ReadinessProbeTcpSocketPort'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.ReadinessProbe.TcpSocket.Port'] = $depth1Value['ReadinessProbeTcpSocketPort'];
			}
			if(isset($depth1Value['LivenessProbeHttpGetScheme'])){
				$this->options['query']['Container.' . ($depth1 + 1) . '.LivenessProbe.HttpGet.Scheme'] = $depth1Value['LivenessProbeHttpGetScheme'];
			}
		}

		return $this;
    }