toConnectorCapability method

ConnectorCapability toConnectorCapability()

Implementation

ConnectorCapability toConnectorCapability() {
  switch (this) {
    case 'VSPHERE':
      return ConnectorCapability.vsphere;
    case 'SCVMM':
      return ConnectorCapability.scvmm;
    case 'HYPERV-MANAGER':
      return ConnectorCapability.hypervManager;
    case 'SNAPSHOT_BATCHING':
      return ConnectorCapability.snapshotBatching;
    case 'SMS_OPTIMIZED':
      return ConnectorCapability.smsOptimized;
  }
  throw Exception('$this is not known in enum ConnectorCapability');
}