/// <summary>
 /// Initializes a new instance of the <see cref="DeploymentEnvironmentDeploymentsResults" /> class.
 /// </summary>
 /// <param name="Environment">Environment (required).</param>
 /// <param name="Deployments">Deployments (required).</param>
 public DeploymentEnvironmentDeploymentsResults(DeploymentEnvironment Environment = default(DeploymentEnvironment), List <EnvironmentDeploymentModel> Deployments = default(List <EnvironmentDeploymentModel>))
 {
     // to ensure "Environment" is required (not null)
     if (Environment == null)
     {
         throw new InvalidDataException("Environment is a required property for DeploymentEnvironmentDeploymentsResults and cannot be null");
     }
     else
     {
         this.Environment = Environment;
     }
     // to ensure "Deployments" is required (not null)
     if (Deployments == null)
     {
         throw new InvalidDataException("Deployments is a required property for DeploymentEnvironmentDeploymentsResults and cannot be null");
     }
     else
     {
         this.Deployments = Deployments;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Deployment" /> class.
 /// </summary>
 /// <param name="DeploymentId">DeploymentId.</param>
 /// <param name="Build">Build.</param>
 /// <param name="Status">Status.</param>
 /// <param name="Started">Started.</param>
 /// <param name="Finished">Finished.</param>
 /// <param name="Environment">Environment.</param>
 /// <param name="Jobs">Jobs.</param>
 public Deployment(int?DeploymentId = default(int?), Build Build = default(Build), Status Status = default(Status), DateTime?Started = default(DateTime?), DateTime?Finished = default(DateTime?), DeploymentEnvironment Environment = default(DeploymentEnvironment), List <DeploymentJob> Jobs = default(List <DeploymentJob>))
 {
     this.DeploymentId = DeploymentId;
     this.Build        = Build;
     this.Status       = Status;
     this.Started      = Started;
     this.Finished     = Finished;
     this.Environment  = Environment;
     this.Jobs         = Jobs;
 }