getAsset method

Future<GetAssetResponse> getAsset({
  1. required String assetId,
  2. required String dataSetId,
  3. required String revisionId,
})

This operation returns information about an asset.

May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException. May throw InternalServerException.

Parameter assetId : The unique identifier for an asset.

Parameter dataSetId : The unique identifier for a data set.

Parameter revisionId : The unique identifier for a revision.

Implementation

Future<GetAssetResponse> getAsset({
  required String assetId,
  required String dataSetId,
  required String revisionId,
}) async {
  ArgumentError.checkNotNull(assetId, 'assetId');
  ArgumentError.checkNotNull(dataSetId, 'dataSetId');
  ArgumentError.checkNotNull(revisionId, 'revisionId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/data-sets/${Uri.encodeComponent(dataSetId)}/revisions/${Uri.encodeComponent(revisionId)}/assets/${Uri.encodeComponent(assetId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetAssetResponse.fromJson(response);
}