toResourceAttributeType method
Implementation
ResourceAttributeType toResourceAttributeType() {
switch (this) {
case 'IPV4_ADDRESS':
return ResourceAttributeType.ipv4Address;
case 'IPV6_ADDRESS':
return ResourceAttributeType.ipv6Address;
case 'MAC_ADDRESS':
return ResourceAttributeType.macAddress;
case 'FQDN':
return ResourceAttributeType.fqdn;
case 'VM_MANAGER_ID':
return ResourceAttributeType.vmManagerId;
case 'VM_MANAGED_OBJECT_REFERENCE':
return ResourceAttributeType.vmManagedObjectReference;
case 'VM_NAME':
return ResourceAttributeType.vmName;
case 'VM_PATH':
return ResourceAttributeType.vmPath;
case 'BIOS_ID':
return ResourceAttributeType.biosId;
case 'MOTHERBOARD_SERIAL_NUMBER':
return ResourceAttributeType.motherboardSerialNumber;
}
throw Exception('$this is not known in enum ResourceAttributeType');
}