import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi"; import { Configuration } from "../../datadog-api-client-common/configuration"; import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http"; import { CIAppGitHubAccountResponse } from "../models/CIAppGitHubAccountResponse"; import { CIAppGitHubAccountsResponse } from "../models/CIAppGitHubAccountsResponse"; import { CIAppGitHubAccountUpdateRequest } from "../models/CIAppGitHubAccountUpdateRequest"; export declare class CIVisibilityGitHubAccountsApiRequestFactory extends BaseAPIRequestFactory { listCIAppGitHubAccounts(_options?: Configuration): Promise; updateCIAppGitHubAccount(body: CIAppGitHubAccountUpdateRequest, _options?: Configuration): Promise; } export declare class CIVisibilityGitHubAccountsApiResponseProcessor { /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to listCIAppGitHubAccounts * @throws ApiException if the response code was not in [200, 299] */ listCIAppGitHubAccounts(response: ResponseContext): Promise; /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects * * @params response Response returned by the server for a request to updateCIAppGitHubAccount * @throws ApiException if the response code was not in [200, 299] */ updateCIAppGitHubAccount(response: ResponseContext): Promise; } export interface CIVisibilityGitHubAccountsApiUpdateCIAppGitHubAccountRequest { /** * @type CIAppGitHubAccountUpdateRequest */ body: CIAppGitHubAccountUpdateRequest; } export declare class CIVisibilityGitHubAccountsApi { private requestFactory; private responseProcessor; private configuration; constructor(configuration: Configuration, requestFactory?: CIVisibilityGitHubAccountsApiRequestFactory, responseProcessor?: CIVisibilityGitHubAccountsApiResponseProcessor); /** * Retrieve the list of GitHub accounts (organizations or users) available to this Datadog organization * through its GitHub App installation, along with each account's and repository's CI Visibility opt-in status. * @param param The request object */ listCIAppGitHubAccounts(options?: Configuration): Promise; /** * Enable or disable CI Visibility for a GitHub account, one of its repositories, or both in the same request. * The account (and, optionally, repository) are identified by name. Account-level and repository-level * changes are independent and may both be supplied in the same request. At least one of `enabled` or * `repository.enabled` must be provided. If the account name matches installations on more than one host, * `host` must be supplied to disambiguate, otherwise a 409 is returned. Returns a 404 if the CI Visibility * GitHub integration is not enabled for this organization, or if the given account or repository cannot be * found by name. * @param param The request object */ updateCIAppGitHubAccount(param: CIVisibilityGitHubAccountsApiUpdateCIAppGitHubAccountRequest, options?: Configuration): Promise; }