deleteIntegrationsGithubReposByRepoPagesWithHttpInfo method

Future<Response> deleteIntegrationsGithubReposByRepoPagesWithHttpInfo(
  1. String repo
)

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".

Note: This method returns the HTTP Response.

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<Response> deleteIntegrationsGithubReposByRepoPagesWithHttpInfo(String repo,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/github/repos/{repo}/pages'
    .replaceAll('{repo}', repo);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}