internal PSWindowsUserConfiguration(Microsoft.Azure.Batch.WindowsUserConfiguration omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserAccount"/> class.
 /// </summary>
 /// <param name='name'>The name of the user account.</param>
 /// <param name='password'>The password for the user account.</param>
 /// <param name='elevationLevel'>The elevation level of the user account.</param>
 /// <param name='linuxUserConfiguration'>Additional properties used to create a user account on a Linux node.</param>
 /// <param name='windowsUserConfiguration'>The Windows-specific user configuration for the user account.</param>
 public UserAccount(
     string name,
     string password,
     Common.ElevationLevel?elevationLevel              = default(Common.ElevationLevel?),
     LinuxUserConfiguration linuxUserConfiguration     = default(LinuxUserConfiguration),
     WindowsUserConfiguration windowsUserConfiguration = default(WindowsUserConfiguration))
 {
     this.propertyContainer = new PropertyContainer();
     this.Name                     = name;
     this.Password                 = password;
     this.ElevationLevel           = elevationLevel;
     this.LinuxUserConfiguration   = linuxUserConfiguration;
     this.WindowsUserConfiguration = windowsUserConfiguration;
 }
 public PSUserAccount(string name, string password, System.Nullable <Microsoft.Azure.Batch.Common.ElevationLevel> elevationLevel = null, PSLinuxUserConfiguration linuxUserConfiguration = default(PSLinuxUserConfiguration), PSWindowsUserConfiguration windowsUserConfiguration = default(PSWindowsUserConfiguration))
 {
     Microsoft.Azure.Batch.LinuxUserConfiguration linuxUserConfigurationOmObject = null;
     if ((linuxUserConfiguration != null))
     {
         linuxUserConfigurationOmObject = linuxUserConfiguration.omObject;
     }
     Microsoft.Azure.Batch.WindowsUserConfiguration windowsUserConfigurationOmObject = null;
     if ((windowsUserConfiguration != null))
     {
         windowsUserConfigurationOmObject = windowsUserConfiguration.omObject;
     }
     this.omObject = new Microsoft.Azure.Batch.UserAccount(name, password, elevationLevel, linuxUserConfigurationOmObject, windowsUserConfigurationOmObject);
 }
 public PSWindowsUserConfiguration(System.Nullable <Microsoft.Azure.Batch.Common.LoginMode> loginMode = null)
 {
     this.omObject = new Microsoft.Azure.Batch.WindowsUserConfiguration(loginMode);
 }