JobSpec constructor

JobSpec({
  1. String? name,
  2. String? entrypoint,
  3. JobResources? resources,
  4. JobTriggers? triggers,
  5. JobSpec_PubSub? pubsub,
  6. Iterable<JobFile>? files,
})

Implementation

factory JobSpec({
  $core.String? name,
  $core.String? entrypoint,
  $1.JobResources? resources,
  $1.JobTriggers? triggers,
  JobSpec_PubSub? pubsub,
  $core.Iterable<$1.JobFile>? files,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (entrypoint != null) {
    _result.entrypoint = entrypoint;
  }
  if (resources != null) {
    _result.resources = resources;
  }
  if (triggers != null) {
    _result.triggers = triggers;
  }
  if (pubsub != null) {
    _result.pubsub = pubsub;
  }
  if (files != null) {
    _result.files.addAll(files);
  }
  return _result;
}