Volume constructor

Volume({
  1. NFS? nfs,
  2. GCS? gcs,
  3. String? mountPath,
  4. Iterable<String>? mountOptions,
  5. String? deviceName,
})

Implementation

factory Volume({
  NFS? nfs,
  GCS? gcs,
  $core.String? mountPath,
  $core.Iterable<$core.String>? mountOptions,
  $core.String? deviceName,
}) {
  final $result = create();
  if (nfs != null) {
    $result.nfs = nfs;
  }
  if (gcs != null) {
    $result.gcs = gcs;
  }
  if (mountPath != null) {
    $result.mountPath = mountPath;
  }
  if (mountOptions != null) {
    $result.mountOptions.addAll(mountOptions);
  }
  if (deviceName != null) {
    $result.deviceName = deviceName;
  }
  return $result;
}