putIntegrationsGithubReposByRepoPagesWithHttpInfo method

Future<Response> putIntegrationsGithubReposByRepoPagesWithHttpInfo(
  1. String repo,
  2. GithubPagesUpdateReq githubPagesUpdateReq
)

Sets or clears the custom domain (cname) and updates HTTPS enforcement, build type, or source.

Sets or clears the custom domain (cname) and updates HTTPS enforcement, build type, or source. ONLY the provided fields are sent to GitHub, so an update never resets a setting the caller did not mention.

Note: This method returns the HTTP Response.

Parameters:

  • String repo (required): Repo is the repository, from the :repo path segment.

  • GithubPagesUpdateReq githubPagesUpdateReq (required):

Implementation

Future<Response> putIntegrationsGithubReposByRepoPagesWithHttpInfo(String repo, GithubPagesUpdateReq githubPagesUpdateReq,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/github/repos/{repo}/pages'
    .replaceAll('{repo}', repo);

  // ignore: prefer_final_locals
  Object? postBody = githubPagesUpdateReq;

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

  const contentTypes = <String>['application/json'];


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