internal PSExitCodeMapping(Microsoft.Azure.Batch.ExitCodeMapping omObject) { if ((omObject == null)) { throw new System.ArgumentNullException("omObject"); } this.omObject = omObject; }
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); }
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 PSExitCodeMapping(int code, PSExitOptions exitOptions) { this.omObject = new Microsoft.Azure.Batch.ExitCodeMapping(code, exitOptions.omObject); }