JobSpec constructor
JobSpec({
- String? name,
- String? entrypoint,
- JobResources? resources,
- JobTriggers? triggers,
- JobSpec_PubSub? pubsub,
- 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;
}