deleteIntegrationsGithubReposByRepoPages method
Deletes the repo's Pages site.
Deletes the repo's Pages site. 404 when there is none, so a caller can tell "turned it off" from "there was nothing on".
Parameters:
- String repo (required): Repo is the repository's short name within the org's installation, with no owner prefix (the owner is server-derived from the grant). A trailing ".git" is stripped.
Implementation
Future<GithubPagesDisabledOut?> deleteIntegrationsGithubReposByRepoPages(String repo,) async {
final response = await deleteIntegrationsGithubReposByRepoPagesWithHttpInfo(repo,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'GithubPagesDisabledOut',) as GithubPagesDisabledOut;
}
return null;
}