コード例 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ScaleSettings != null)
     {
         ScaleSettings.Validate();
     }
     if (UserAccountCredentials != null)
     {
         UserAccountCredentials.Validate();
     }
     if (Subnet != null)
     {
         Subnet.Validate();
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the AmlComputeProperties class.
 /// </summary>
 /// <param name="vmSize">Virtual Machine Size</param>
 /// <param name="vmPriority">Virtual Machine priority. Possible values
 /// include: 'Dedicated', 'LowPriority'</param>
 /// <param name="scaleSettings">Scale settings for AML Compute</param>
 /// <param name="userAccountCredentials">User account
 /// credentials.</param>
 /// <param name="subnet">Subnet.</param>
 /// <param name="remoteLoginPortPublicAccess">Close remote Login Access
 /// Port</param>
 /// <param name="allocationState">Allocation state.</param>
 /// <param name="allocationStateTransitionTime">Allocation state
 /// transition time.</param>
 /// <param name="errors">Errors.</param>
 /// <param name="currentNodeCount">Current node count.</param>
 /// <param name="targetNodeCount">Target node count.</param>
 /// <param name="nodeStateCounts">Node state counts.</param>
 public AmlComputeProperties(string vmSize = default(string), string vmPriority = default(string), ScaleSettings scaleSettings = default(ScaleSettings), UserAccountCredentials userAccountCredentials = default(UserAccountCredentials), ResourceId subnet = default(ResourceId), string remoteLoginPortPublicAccess = default(string), string allocationState = default(string), System.DateTime?allocationStateTransitionTime = default(System.DateTime?), IList <MachineLearningServiceError> errors = default(IList <MachineLearningServiceError>), int?currentNodeCount = default(int?), int?targetNodeCount = default(int?), NodeStateCounts nodeStateCounts = default(NodeStateCounts))
 {
     VmSize                        = vmSize;
     VmPriority                    = vmPriority;
     ScaleSettings                 = scaleSettings;
     UserAccountCredentials        = userAccountCredentials;
     Subnet                        = subnet;
     RemoteLoginPortPublicAccess   = remoteLoginPortPublicAccess;
     AllocationState               = allocationState;
     AllocationStateTransitionTime = allocationStateTransitionTime;
     Errors                        = errors;
     CurrentNodeCount              = currentNodeCount;
     TargetNodeCount               = targetNodeCount;
     NodeStateCounts               = nodeStateCounts;
     CustomInit();
 }