internal PSExitCodeRangeMapping(Microsoft.Azure.Batch.ExitCodeRangeMapping omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 internal PSExitCodeRangeMapping(Microsoft.Azure.Batch.ExitCodeRangeMapping omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
Example #3
0
 public PropertyContainer(Models.ExitConditions protocolObject) : base(BindingState.Bound)
 {
     this.DefaultProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.DefaultProperty, o => new ExitOptions(o).Freeze()),
         "Default",
         BindingAccess.Read);
     this.ExitCodeRangesProperty = this.CreatePropertyAccessor(
         ExitCodeRangeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodeRanges),
         "ExitCodeRanges",
         BindingAccess.Read);
     this.ExitCodesProperty = this.CreatePropertyAccessor(
         ExitCodeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodes),
         "ExitCodes",
         BindingAccess.Read);
     this.SchedulingErrorProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.SchedulingError, o => new ExitOptions(o).Freeze()),
         "SchedulingError",
         BindingAccess.Read);
 }
Example #4
0
 public PropertyContainer(Models.ExitConditions protocolObject) : base(BindingState.Bound)
 {
     this.DefaultProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.DefaultProperty, o => new ExitOptions(o).Freeze()),
         nameof(Default),
         BindingAccess.Read);
     this.ExitCodeRangesProperty = this.CreatePropertyAccessor(
         ExitCodeRangeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodeRanges),
         nameof(ExitCodeRanges),
         BindingAccess.Read);
     this.ExitCodesProperty = this.CreatePropertyAccessor(
         ExitCodeMapping.ConvertFromProtocolCollectionAndFreeze(protocolObject.ExitCodes),
         nameof(ExitCodes),
         BindingAccess.Read);
     this.FileUploadErrorProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.FileUploadError, o => new ExitOptions(o).Freeze()),
         nameof(FileUploadError),
         BindingAccess.Read);
     this.PreProcessingErrorProperty = this.CreatePropertyAccessor(
         UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.PreProcessingError, o => new ExitOptions(o).Freeze()),
         nameof(PreProcessingError),
         BindingAccess.Read);
 }
 public PSExitCodeRangeMapping(int start, int end, PSExitOptions exitOptions)
 {
     this.omObject = new Microsoft.Azure.Batch.ExitCodeRangeMapping(start, end, exitOptions.omObject);
 }
 public PSExitCodeRangeMapping(int start, int end, PSExitOptions exitOptions)
 {
     this.omObject = new Microsoft.Azure.Batch.ExitCodeRangeMapping(start, end, exitOptions.omObject);
 }