the-moby-effect 1.45.0-alpha.2 → 1.45.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Schemas.ts CHANGED
@@ -1495,10 +1495,10 @@ export class Resources extends Schema.Class<Resources>("Resources")({
1495
1495
  * An integer value representing this container's relative CPU weight versus
1496
1496
  * other containers.
1497
1497
  */
1498
- CpuShares: Schema.optional(Schema.Number),
1498
+ CpuShares: Schema.optional(Schema.NullOr(Schema.Number)),
1499
1499
 
1500
1500
  /** Memory limit in bytes. */
1501
- Memory: Schema.optional(Schema.Number),
1501
+ Memory: Schema.optional(Schema.NullOr(Schema.Number)),
1502
1502
 
1503
1503
  /**
1504
1504
  * Path to `cgroups` under which the container's `cgroup` is created. If the
@@ -1506,10 +1506,10 @@ export class Resources extends Schema.Class<Resources>("Resources")({
1506
1506
  * `cgroups` path of the init process. Cgroups are created if they do not
1507
1507
  * already exist.
1508
1508
  */
1509
- CgroupParent: Schema.optional(Schema.String),
1509
+ CgroupParent: Schema.optional(Schema.NullOr(Schema.String)),
1510
1510
 
1511
1511
  /** Block IO weight (relative weight). */
1512
- BlkioWeight: Schema.optional(Schema.Number),
1512
+ BlkioWeight: Schema.optional(Schema.NullOr(Schema.Number)),
1513
1513
 
1514
1514
  /**
1515
1515
  * Block IO weight (relative device weight) in the form:
@@ -1555,31 +1555,31 @@ export class Resources extends Schema.Class<Resources>("Resources")({
1555
1555
  BlkioDeviceWriteIOps: Schema.optional(Schema.NullOr(Schema.Array(Schema.NullOr(ThrottleDevice)))),
1556
1556
 
1557
1557
  /** The length of a CPU period in microseconds. */
1558
- CpuPeriod: Schema.optional(Schema.Number),
1558
+ CpuPeriod: Schema.optional(Schema.NullOr(Schema.Number)),
1559
1559
 
1560
1560
  /** Microseconds of CPU time that the container can get in a CPU period. */
1561
- CpuQuota: Schema.optional(Schema.Number),
1561
+ CpuQuota: Schema.optional(Schema.NullOr(Schema.Number)),
1562
1562
 
1563
1563
  /**
1564
1564
  * The length of a CPU real-time period in microseconds. Set to 0 to
1565
1565
  * allocate no time allocated to real-time tasks.
1566
1566
  */
1567
- CpuRealtimePeriod: Schema.optional(Schema.Number),
1567
+ CpuRealtimePeriod: Schema.optional(Schema.NullOr(Schema.Number)),
1568
1568
 
1569
1569
  /**
1570
1570
  * The length of a CPU real-time runtime in microseconds. Set to 0 to
1571
1571
  * allocate no time allocated to real-time tasks.
1572
1572
  */
1573
- CpuRealtimeRuntime: Schema.optional(Schema.Number),
1573
+ CpuRealtimeRuntime: Schema.optional(Schema.NullOr(Schema.Number)),
1574
1574
 
1575
1575
  /** CPUs in which to allow execution (e.g., `0-3`, `0,1`). */
1576
- CpusetCpus: Schema.optional(Schema.String),
1576
+ CpusetCpus: Schema.optional(Schema.NullOr(Schema.String)),
1577
1577
 
1578
1578
  /**
1579
1579
  * Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only
1580
1580
  * effective on NUMA systems.
1581
1581
  */
1582
- CpusetMems: Schema.optional(Schema.String),
1582
+ CpusetMems: Schema.optional(Schema.NullOr(Schema.String)),
1583
1583
 
1584
1584
  /** A list of devices to add to the container. */
1585
1585
  Devices: Schema.optional(Schema.NullOr(Schema.Array(Schema.NullOr(DeviceMapping)))),
@@ -1597,38 +1597,38 @@ export class Resources extends Schema.Class<Resources>("Resources")({
1597
1597
  *
1598
1598
  * This field is omitted when empty.
1599
1599
  */
1600
- KernelMemoryTCP: Schema.optional(Schema.Number),
1600
+ KernelMemoryTCP: Schema.optional(Schema.NullOr(Schema.Number)),
1601
1601
 
1602
1602
  /** Memory soft limit in bytes. */
1603
- MemoryReservation: Schema.optional(Schema.Number),
1603
+ MemoryReservation: Schema.optional(Schema.NullOr(Schema.Number)),
1604
1604
 
1605
1605
  /** Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */
1606
- MemorySwap: Schema.optional(Schema.Number),
1606
+ MemorySwap: Schema.optional(Schema.NullOr(Schema.Number)),
1607
1607
 
1608
1608
  /**
1609
1609
  * Tune a container's memory swappiness behavior. Accepts an integer between
1610
1610
  * 0 and 100.
1611
1611
  */
1612
- MemorySwappiness: Schema.optional(Schema.Number),
1612
+ MemorySwappiness: Schema.optional(Schema.NullOr(Schema.Number)),
1613
1613
 
1614
1614
  /** CPU quota in units of 10<sup>-9</sup> CPUs. */
1615
- NanoCpus: Schema.optional(Schema.Number),
1615
+ NanoCpus: Schema.optional(Schema.NullOr(Schema.Number)),
1616
1616
 
1617
1617
  /** Disable OOM Killer for the container. */
1618
- OomKillDisable: Schema.optional(Schema.Boolean),
1618
+ OomKillDisable: Schema.optional(Schema.NullOr(Schema.Boolean)),
1619
1619
 
1620
1620
  /**
1621
1621
  * Run an init inside the container that forwards signals and reaps
1622
1622
  * processes. This field is omitted if empty, and the default (as configured
1623
1623
  * on the daemon) is used.
1624
1624
  */
1625
- Init: Schema.optional(Schema.Boolean),
1625
+ Init: Schema.optional(Schema.NullOr(Schema.Boolean)),
1626
1626
 
1627
1627
  /**
1628
1628
  * Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null`
1629
1629
  * to not change.
1630
1630
  */
1631
- PidsLimit: Schema.optional(Schema.Number),
1631
+ PidsLimit: Schema.optional(Schema.NullOr(Schema.Number)),
1632
1632
 
1633
1633
  /**
1634
1634
  * A list of resource limits to set in the container. For example:
@@ -1661,7 +1661,7 @@ export class Resources extends Schema.Class<Resources>("Resources")({
1661
1661
  * mutually exclusive. The order of precedence is `CPUCount` first, then
1662
1662
  * `CPUShares`, and `CPUPercent` last.
1663
1663
  */
1664
- CpuCount: Schema.optional(Schema.Number),
1664
+ CpuCount: Schema.optional(Schema.NullOr(Schema.Number)),
1665
1665
 
1666
1666
  /**
1667
1667
  * The usable percentage of the available CPUs (Windows only).
@@ -1670,16 +1670,16 @@ export class Resources extends Schema.Class<Resources>("Resources")({
1670
1670
  * mutually exclusive. The order of precedence is `CPUCount` first, then
1671
1671
  * `CPUShares`, and `CPUPercent` last.
1672
1672
  */
1673
- CpuPercent: Schema.optional(Schema.Number),
1673
+ CpuPercent: Schema.optional(Schema.NullOr(Schema.Number)),
1674
1674
 
1675
1675
  /** Maximum IOps for the container system drive (Windows only) */
1676
- IOMaximumIOps: Schema.optional(Schema.Number),
1676
+ IOMaximumIOps: Schema.optional(Schema.NullOr(Schema.Number)),
1677
1677
 
1678
1678
  /**
1679
1679
  * Maximum IO in bytes per second for the container system drive (Windows
1680
1680
  * only).
1681
1681
  */
1682
- IOMaximumBandwidth: Schema.optional(Schema.Number),
1682
+ IOMaximumBandwidth: Schema.optional(Schema.NullOr(Schema.Number)),
1683
1683
  }) {}
1684
1684
 
1685
1685
  /** @since 1.45.0 */
@@ -2525,10 +2525,7 @@ export enum HostConfig_1_Isolation {
2525
2525
  }
2526
2526
 
2527
2527
  /** @since 1.45.0 */
2528
- export class HostConfig_0 extends Resources.extend<HostConfig_0>("HostConfig_0")({}) {}
2529
-
2530
- /** @since 1.45.0 */
2531
- export class HostConfig_1 extends Schema.Class<HostConfig_1>("HostConfig_1")({
2528
+ export class HostConfig extends Resources.extend<HostConfig>("HostConfig")({
2532
2529
  /**
2533
2530
  * A list of volume bindings for this container. Each volume binding is a
2534
2531
  * string in one of these forms:
@@ -2776,9 +2773,6 @@ export class HostConfig_1 extends Schema.Class<HostConfig_1>("HostConfig_1")({
2776
2773
  ReadonlyPaths: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
2777
2774
  }) {}
2778
2775
 
2779
- /** @since 1.45.0 */
2780
- export class HostConfig extends HostConfig_1.extend<HostConfig>("HostConfig")({}) {}
2781
-
2782
2776
  /** @since 1.45.0 */
2783
2777
  export class NetworkingConfig extends Schema.Class<NetworkingConfig>("NetworkingConfig")({
2784
2778
  /** A mapping of network name to endpoint configuration for that network. */
@@ -3072,16 +3066,10 @@ export class NodeDescription extends Schema.Class<NodeDescription>("NodeDescript
3072
3066
  }) {}
3073
3067
 
3074
3068
  /** @since 1.45.0 */
3075
- export class Swarm_0 extends ClusterInfo.extend<Swarm_0>("Swarm_0")({}) {}
3076
-
3077
- /** @since 1.45.0 */
3078
- export class Swarm_1 extends Schema.Class<Swarm_1>("Swarm_1")({
3069
+ export class Swarm extends ClusterInfo.extend<Swarm>("Swarm")({
3079
3070
  JoinTokens: Schema.optional(Schema.NullOr(JoinTokens)),
3080
3071
  }) {}
3081
3072
 
3082
- /** @since 1.45.0 */
3083
- export class Swarm extends Swarm_1.extend<Swarm>("Swarm")({}) {}
3084
-
3085
3073
  /** @since 1.45.0 */
3086
3074
  export enum TaskSpec_ContainerSpec_Isolation {
3087
3075
  "UNKNOWN" = "",