internal PSResourceStatistics(Microsoft.Azure.Batch.ResourceStatistics omObject) { if ((omObject == null)) { throw new System.ArgumentNullException("omObject"); } this.omObject = omObject; }
internal PoolStatistics(Models.PoolStatistics protocolObject) { this.lastUpdateTime = protocolObject.LastUpdateTime; this.resourceStatistics = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.ResourceStats, o => new ResourceStatistics(o).Freeze()); this.startTime = protocolObject.StartTime; this.url = protocolObject.Url; this.usageStatistics = UtilitiesInternal.CreateObjectWithNullCheck(protocolObject.UsageStats, o => new UsageStatistics(o).Freeze()); }