getVersion method

  1. @override
Future<Operation> getVersion(
  1. GetVersionHostRequest request
)
override

Allows customers to get SBOM versions of a host.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<Operation> getVersion(GetVersionHostRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getVersion case final getVersion?) {
    return getVersion(request);
  }
  throw UnsupportedError('getVersion');
}