getSourceRepositoryCloneUrls method

Future<GetSourceRepositoryCloneUrlsResponse> getSourceRepositoryCloneUrls({
  1. required String projectName,
  2. required String sourceRepositoryName,
  3. required String spaceName,
})

Returns information about the URLs that can be used with a Git client to clone a source repository.

Parameter projectName : The name of the project in the space.

Parameter sourceRepositoryName : The name of the source repository.

Parameter spaceName : The name of the space.

Implementation

Future<GetSourceRepositoryCloneUrlsResponse> getSourceRepositoryCloneUrls({
  required String projectName,
  required String sourceRepositoryName,
  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(sourceRepositoryName)}/cloneUrls',
    exceptionFnMap: _exceptionFns,
  );
  return GetSourceRepositoryCloneUrlsResponse.fromJson(response);
}