getVersion method

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

Allows customers to get SBOM versions of a reservation slot.

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(GetVersionReservationSlotRequest request) async {
  if (isClosed) throw StateError('Service is closed');

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