ApiSpec constructor
ApiSpec({})
Implementation
factory ApiSpec({
$core.String? name,
$core.String? filename,
$core.String? description,
$core.String? revisionId,
$2.Timestamp? createTime,
$2.Timestamp? revisionCreateTime,
$2.Timestamp? revisionUpdateTime,
$core.String? mimeType,
$core.int? sizeBytes,
$core.String? hash,
$core.String? sourceUri,
$core.Map<$core.String, $core.String>? labels,
$core.Map<$core.String, $core.String>? annotations,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (filename != null) {
$result.filename = filename;
}
if (description != null) {
$result.description = description;
}
if (revisionId != null) {
$result.revisionId = revisionId;
}
if (createTime != null) {
$result.createTime = createTime;
}
if (revisionCreateTime != null) {
$result.revisionCreateTime = revisionCreateTime;
}
if (revisionUpdateTime != null) {
$result.revisionUpdateTime = revisionUpdateTime;
}
if (mimeType != null) {
$result.mimeType = mimeType;
}
if (sizeBytes != null) {
$result.sizeBytes = sizeBytes;
}
if (hash != null) {
$result.hash = hash;
}
if (sourceUri != null) {
$result.sourceUri = sourceUri;
}
if (labels != null) {
$result.labels.addAll(labels);
}
if (annotations != null) {
$result.annotations.addAll(annotations);
}
return $result;
}