/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (CloudServiceConfiguration != null)
     {
         CloudServiceConfiguration.Validate();
     }
     if (VirtualMachineConfiguration != null)
     {
         VirtualMachineConfiguration.Validate();
     }
 }
 /// <summary>
 /// Initializes a new instance of the DeploymentConfiguration class.
 /// </summary>
 /// <param name="cloudServiceConfiguration">The cloud service
 /// configuration for the pool.</param>
 /// <param name="virtualMachineConfiguration">The virtual machine
 /// configuration for the pool.</param>
 public DeploymentConfiguration(CloudServiceConfiguration cloudServiceConfiguration = default(CloudServiceConfiguration), VirtualMachineConfiguration virtualMachineConfiguration = default(VirtualMachineConfiguration))
 {
     CloudServiceConfiguration   = cloudServiceConfiguration;
     VirtualMachineConfiguration = virtualMachineConfiguration;
     CustomInit();
 }