Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeploymentEnvironmentAddition" /> class.
 /// </summary>
 /// <param name="Name">Name (required).</param>
 /// <param name="Provider">Provider (required).</param>
 /// <param name="Settings">Settings (required).</param>
 public DeploymentEnvironmentAddition(string Name = default(string), DeploymentProviderType Provider = default(DeploymentProviderType), DeploymentEnvironmentSettings Settings = default(DeploymentEnvironmentSettings))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for DeploymentEnvironmentAddition and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Provider" is required (not null)
     if (Provider == null)
     {
         throw new InvalidDataException("Provider is a required property for DeploymentEnvironmentAddition and cannot be null");
     }
     else
     {
         this.Provider = Provider;
     }
     // to ensure "Settings" is required (not null)
     if (Settings == null)
     {
         throw new InvalidDataException("Settings is a required property for DeploymentEnvironmentAddition and cannot be null");
     }
     else
     {
         this.Settings = Settings;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DeploymentEnvironmentWithSettings" /> class.
 /// </summary>
 /// <param name="DeploymentEnvironmentId">DeploymentEnvironmentId.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Provider">Provider.</param>
 /// <param name="AccountId">AccountId.</param>
 /// <param name="ProjectsMode">0 is \&quot;Any project can be deployed to the environment\&quot; 1 is \&quot;Only selected projects can be deployed to the environment\&quot; 2 is \&quot;All except selected projects can be deployed to the environment\&quot;.</param>
 /// <param name="SecurityDescriptor">SecurityDescriptor.</param>
 /// <param name="Tags">Comma-separated list of environment tags for dynamic grouping. Appears that any input is accepted.  The returned value only contains case-preserving but insensitive unique values where spaces around \&quot;,\&quot; are removed but otherwise preserved.  Empty values and items are allowed..</param>
 /// <param name="EnvironmentAccessKey">EnvironmentAccessKey.</param>
 /// <param name="Settings">Settings.</param>
 /// <param name="SelectedProjects">Project IDs of selected projects.</param>
 /// <param name="Projects">Projects available for selection in UI. Only present in response from getEnvironmentSettings. .</param>
 public DeploymentEnvironmentWithSettings(int?DeploymentEnvironmentId = default(int?), string Name = default(string), DeploymentProviderType Provider = default(DeploymentProviderType), int?AccountId = default(int?), int?ProjectsMode = default(int?), SecurityDescriptor SecurityDescriptor = default(SecurityDescriptor), string Tags = default(string), string EnvironmentAccessKey = default(string), DeploymentEnvironmentSettings Settings = default(DeploymentEnvironmentSettings), List <int?> SelectedProjects = default(List <int?>), List <DeploymentEnvironmentProject> Projects = default(List <DeploymentEnvironmentProject>))
 {
     this.DeploymentEnvironmentId = DeploymentEnvironmentId;
     this.Name                 = Name;
     this.Provider             = Provider;
     this.AccountId            = AccountId;
     this.ProjectsMode         = ProjectsMode;
     this.SecurityDescriptor   = SecurityDescriptor;
     this.Tags                 = Tags;
     this.EnvironmentAccessKey = EnvironmentAccessKey;
     this.Settings             = Settings;
     this.SelectedProjects     = SelectedProjects;
     this.Projects             = Projects;
 }