Asset constructor
Asset({
- String? name,
- String? displayName,
- String? uid,
- Timestamp? createTime,
- Timestamp? updateTime,
- Map<
String, String> ? labels, - String? description,
- State? state,
- Asset_ResourceSpec? resourceSpec,
- Asset_ResourceStatus? resourceStatus,
- Asset_SecurityStatus? securityStatus,
- Asset_DiscoverySpec? discoverySpec,
- Asset_DiscoveryStatus? discoveryStatus,
Implementation
factory Asset({
$core.String? name,
$core.String? displayName,
$core.String? uid,
$2.Timestamp? createTime,
$2.Timestamp? updateTime,
$core.Map<$core.String, $core.String>? labels,
$core.String? description,
State? state,
Asset_ResourceSpec? resourceSpec,
Asset_ResourceStatus? resourceStatus,
Asset_SecurityStatus? securityStatus,
Asset_DiscoverySpec? discoverySpec,
Asset_DiscoveryStatus? discoveryStatus,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (displayName != null) {
$result.displayName = displayName;
}
if (uid != null) {
$result.uid = uid;
}
if (createTime != null) {
$result.createTime = createTime;
}
if (updateTime != null) {
$result.updateTime = updateTime;
}
if (labels != null) {
$result.labels.addAll(labels);
}
if (description != null) {
$result.description = description;
}
if (state != null) {
$result.state = state;
}
if (resourceSpec != null) {
$result.resourceSpec = resourceSpec;
}
if (resourceStatus != null) {
$result.resourceStatus = resourceStatus;
}
if (securityStatus != null) {
$result.securityStatus = securityStatus;
}
if (discoverySpec != null) {
$result.discoverySpec = discoverySpec;
}
if (discoveryStatus != null) {
$result.discoveryStatus = discoveryStatus;
}
return $result;
}