예제 #1
0
 /// <summary>
 /// Initializes a new instance of the ResourceLimits class.
 /// </summary>
 /// <param name="memoryInGB">The memory limit in GB of this container
 /// instance.</param>
 /// <param name="cpu">The CPU limit of this container instance.</param>
 /// <param name="gpu">The GPU limit of this container instance.</param>
 public ResourceLimits(double?memoryInGB = default(double?), double?cpu = default(double?), GpuResource gpu = default(GpuResource))
 {
     MemoryInGB = memoryInGB;
     Cpu        = cpu;
     Gpu        = gpu;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ResourceRequests class.
 /// </summary>
 /// <param name="memoryInGB">The memory request in GB of this container
 /// instance.</param>
 /// <param name="cpu">The CPU request of this container
 /// instance.</param>
 /// <param name="gpu">The GPU request of this container
 /// instance.</param>
 public ResourceRequests(double memoryInGB, double cpu, GpuResource gpu = default(GpuResource))
 {
     MemoryInGB = memoryInGB;
     Cpu        = cpu;
     Gpu        = gpu;
     CustomInit();
 }