Job constructor
Job({
- String? id,
- String? projectId,
- String? name,
- JobType? type,
- Environment? environment,
- JobState? currentState,
- Timestamp? currentStateTime,
- JobState? requestedState,
- JobExecutionInfo? executionInfo,
- Timestamp? createTime,
- String? replaceJobId,
- String? clientRequestId,
- String? replacedByJobId,
- Iterable<
String> ? tempFiles, - Map<
String, String> ? labels, - String? location,
- Iterable<
ExecutionStageState> ? stageStates, - JobMetadata? jobMetadata,
- Timestamp? startTime,
- String? createdFromSnapshotId,
- String? stepsLocation,
- bool? satisfiesPzs,
Implementation
factory Job({
$core.String? id,
$core.String? projectId,
$core.String? name,
JobType? type,
Environment? environment,
JobState? currentState,
$2.Timestamp? currentStateTime,
JobState? requestedState,
JobExecutionInfo? executionInfo,
$2.Timestamp? createTime,
$core.String? replaceJobId,
$core.String? clientRequestId,
$core.String? replacedByJobId,
$core.Iterable<$core.String>? tempFiles,
$core.Map<$core.String, $core.String>? labels,
$core.String? location,
$core.Iterable<ExecutionStageState>? stageStates,
JobMetadata? jobMetadata,
$2.Timestamp? startTime,
$core.String? createdFromSnapshotId,
$core.String? stepsLocation,
$core.bool? satisfiesPzs,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (projectId != null) {
$result.projectId = projectId;
}
if (name != null) {
$result.name = name;
}
if (type != null) {
$result.type = type;
}
if (environment != null) {
$result.environment = environment;
}
if (currentState != null) {
$result.currentState = currentState;
}
if (currentStateTime != null) {
$result.currentStateTime = currentStateTime;
}
if (requestedState != null) {
$result.requestedState = requestedState;
}
if (executionInfo != null) {
$result.executionInfo = executionInfo;
}
if (createTime != null) {
$result.createTime = createTime;
}
if (replaceJobId != null) {
$result.replaceJobId = replaceJobId;
}
if (clientRequestId != null) {
$result.clientRequestId = clientRequestId;
}
if (replacedByJobId != null) {
$result.replacedByJobId = replacedByJobId;
}
if (tempFiles != null) {
$result.tempFiles.addAll(tempFiles);
}
if (labels != null) {
$result.labels.addAll(labels);
}
if (location != null) {
$result.location = location;
}
if (stageStates != null) {
$result.stageStates.addAll(stageStates);
}
if (jobMetadata != null) {
$result.jobMetadata = jobMetadata;
}
if (startTime != null) {
$result.startTime = startTime;
}
if (createdFromSnapshotId != null) {
$result.createdFromSnapshotId = createdFromSnapshotId;
}
if (stepsLocation != null) {
$result.stepsLocation = stepsLocation;
}
if (satisfiesPzs != null) {
$result.satisfiesPzs = satisfiesPzs;
}
return $result;
}