deleteSourceRepository method

Future<DeleteSourceRepositoryResponse> deleteSourceRepository({
  1. required String name,
  2. required String projectName,
  3. required String spaceName,
})

Deletes a source repository in Amazon CodeCatalyst. You cannot use this API to delete a linked repository. It can only be used to delete a Amazon CodeCatalyst 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<DeleteSourceRepositoryResponse> deleteSourceRepository({
  required String name,
  required String projectName,
  required String spaceName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(projectName)}/sourceRepositories/${Uri.encodeComponent(name)}',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteSourceRepositoryResponse.fromJson(response);
}