Example #1
0
 internal PSUsageStatistics(Microsoft.Azure.Batch.UsageStatistics omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
 internal PSUsageStatistics(Microsoft.Azure.Batch.UsageStatistics omObject)
 {
     if ((omObject == null))
     {
         throw new System.ArgumentNullException("omObject");
     }
     this.omObject = omObject;
 }
Example #3
0
 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());
 }