コード例 #1
0
 internal PSLinuxUserConfiguration(Microsoft.Azure.Batch.LinuxUserConfiguration omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
コード例 #2
0
 public PSUserAccount(string name, string password, System.Nullable <Microsoft.Azure.Batch.Common.ElevationLevel> elevationLevel = null, PSLinuxUserConfiguration linuxUserConfiguration = default(PSLinuxUserConfiguration))
 {
     Microsoft.Azure.Batch.LinuxUserConfiguration linuxUserConfigurationOmObject = null;
     if ((linuxUserConfiguration != null))
     {
         linuxUserConfigurationOmObject = linuxUserConfiguration.omObject;
     }
     this.omObject = new Microsoft.Azure.Batch.UserAccount(name, password, elevationLevel, linuxUserConfigurationOmObject);
 }
コード例 #3
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;
 }
コード例 #4
0
 public PSLinuxUserConfiguration(System.Nullable <int> uid = null, System.Nullable <int> gid = null, string sshPrivateKey = null)
 {
     this.omObject = new Microsoft.Azure.Batch.LinuxUserConfiguration(uid, gid, sshPrivateKey);
 }