internal PSBatchError(Microsoft.Azure.Batch.BatchError omObject) { if ((omObject == null)) { throw new System.ArgumentNullException("omObject"); } this.omObject = omObject; }
internal AddTaskResult(Models.TaskAddResult protocolObject) { this.error = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.Error, o => new BatchError(o).Freeze()); this.eTag = protocolObject.ETag; this.lastModified = protocolObject.LastModified; this.location = protocolObject.Location; this.status = UtilitiesInternal.MapEnum <Models.TaskAddStatus, Common.AddTaskStatus>(protocolObject.Status); this.taskId = protocolObject.TaskId; }