getArtifactUrl method

Future<GetArtifactUrlResult> getArtifactUrl({
  1. required String artifactId,
})

Returns the artifact info that corresponds to an artifact id.

May throw BadRequestException. May throw UnauthorizedException. May throw InternalFailureException. May throw NotFoundException. May throw LimitExceededException.

Parameter artifactId : The unique ID for an artifact.

Implementation

Future<GetArtifactUrlResult> getArtifactUrl({
  required String artifactId,
}) async {
  ArgumentError.checkNotNull(artifactId, 'artifactId');
  _s.validateStringLength(
    'artifactId',
    artifactId,
    0,
    255,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/artifacts/${Uri.encodeComponent(artifactId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetArtifactUrlResult.fromJson(response);
}