import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to retrieve the collaborators for a given repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const test = github.getCollaborators({ * owner: "example_owner", * repository: "example_repository", * }); * ``` */ export declare function getCollaborators(args: GetCollaboratorsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCollaborators. */ export interface GetCollaboratorsArgs { /** * Filter collaborators returned by their affiliation. Can be one of: `outside`, `direct`, `all`. Defaults to `all`. */ affiliation?: string; /** * The organization that owns the repository. */ owner: string; /** * Filter collaborators returned by their permission. Can be one of: `pull`, `triage`, `push`, `maintain`, `admin`. Defaults to not doing any filtering on permission. */ permission?: string; /** * The name of the repository. */ repository: string; } /** * A collection of values returned by getCollaborators. */ export interface GetCollaboratorsResult { readonly affiliation?: string; /** * An Array of GitHub collaborators. Each `collaborator` block consists of the fields documented below. */ readonly collaborators: outputs.GetCollaboratorsCollaborator[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly owner: string; /** * The permission of the collaborator. */ readonly permission?: string; readonly repository: string; } /** * Use this data source to retrieve the collaborators for a given repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const test = github.getCollaborators({ * owner: "example_owner", * repository: "example_repository", * }); * ``` */ export declare function getCollaboratorsOutput(args: GetCollaboratorsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCollaborators. */ export interface GetCollaboratorsOutputArgs { /** * Filter collaborators returned by their affiliation. Can be one of: `outside`, `direct`, `all`. Defaults to `all`. */ affiliation?: pulumi.Input; /** * The organization that owns the repository. */ owner: pulumi.Input; /** * Filter collaborators returned by their permission. Can be one of: `pull`, `triage`, `push`, `maintain`, `admin`. Defaults to not doing any filtering on permission. */ permission?: pulumi.Input; /** * The name of the repository. */ repository: pulumi.Input; }