getSourceRepository method
Returns information about a source repository.
Parameter name :
The name of the source repository.
Parameter projectName :
The name of the project in the space.
Parameter spaceName :
The name of the space.
Implementation
Future<GetSourceRepositoryResponse> getSourceRepository({
required String name,
required String projectName,
required String spaceName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/sourceRepositories/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return GetSourceRepositoryResponse.fromJson(response);
}