Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the Role class.
 /// </summary>
 /// <param name="name">The name of the role.</param>
 /// <param name="minInstanceCount">The minimum instance count of the
 /// cluster.</param>
 /// <param name="targetInstanceCount">The instance count of the
 /// cluster.</param>
 /// <param name="hardwareProfile">The hardware profile.</param>
 /// <param name="osProfile">The operating system profile.</param>
 /// <param name="virtualNetworkProfile">The virtual network
 /// profile.</param>
 /// <param name="dataDisksGroups">The data disks groups for the
 /// role.</param>
 /// <param name="scriptActions">The list of script actions on the
 /// role.</param>
 public Role(string name = default(string), int?minInstanceCount = default(int?), int?targetInstanceCount = default(int?), HardwareProfile hardwareProfile = default(HardwareProfile), OsProfile osProfile = default(OsProfile), VirtualNetworkProfile virtualNetworkProfile = default(VirtualNetworkProfile), IList <DataDisksGroups> dataDisksGroups = default(IList <DataDisksGroups>), IList <ScriptAction> scriptActions = default(IList <ScriptAction>))
 {
     Name                  = name;
     MinInstanceCount      = minInstanceCount;
     TargetInstanceCount   = targetInstanceCount;
     HardwareProfile       = hardwareProfile;
     OsProfile             = osProfile;
     VirtualNetworkProfile = virtualNetworkProfile;
     DataDisksGroups       = dataDisksGroups;
     ScriptActions         = scriptActions;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the Role class.
 /// </summary>
 /// <param name="name">The name of the role.</param>
 /// <param name="minInstanceCount">The minimum instance count of the
 /// cluster.</param>
 /// <param name="targetInstanceCount">The instance count of the
 /// cluster.</param>
 /// <param name="autoscaleConfiguration">The autoscale
 /// configurations.</param>
 /// <param name="hardwareProfile">The hardware profile.</param>
 /// <param name="osProfile">The operating system profile.</param>
 /// <param name="virtualNetworkProfile">The virtual network
 /// profile.</param>
 /// <param name="dataDisksGroups">The data disks groups for the
 /// role.</param>
 /// <param name="scriptActions">The list of script actions on the
 /// role.</param>
 /// <param name="encryptDataDisks">Indicates whether encrypt the data
 /// disks.</param>
 public Role(string name = default(string), int?minInstanceCount = default(int?), int?targetInstanceCount = default(int?), Autoscale autoscaleConfiguration = default(Autoscale), HardwareProfile hardwareProfile = default(HardwareProfile), OsProfile osProfile = default(OsProfile), VirtualNetworkProfile virtualNetworkProfile = default(VirtualNetworkProfile), IList <DataDisksGroups> dataDisksGroups = default(IList <DataDisksGroups>), IList <ScriptAction> scriptActions = default(IList <ScriptAction>), bool?encryptDataDisks = default(bool?))
 {
     Name                   = name;
     MinInstanceCount       = minInstanceCount;
     TargetInstanceCount    = targetInstanceCount;
     AutoscaleConfiguration = autoscaleConfiguration;
     HardwareProfile        = hardwareProfile;
     OsProfile              = osProfile;
     VirtualNetworkProfile  = virtualNetworkProfile;
     DataDisksGroups        = dataDisksGroups;
     ScriptActions          = scriptActions;
     EncryptDataDisks       = encryptDataDisks;
     CustomInit();
 }