import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to retrieve information about a single tree. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const _this = github.getRepository({ * name: "example", * }); * const thisGetBranch = Promise.all([_this, _this]).then(([_this, _this1]) => github.getBranch({ * branch: _this.defaultBranch, * repository: _this1.name, * })); * const thisGetTree = Promise.all([_this, thisGetBranch]).then(([_this, thisGetBranch]) => github.getTree({ * recursive: false, * repository: _this.name, * treeSha: thisGetBranch.sha, * })); * export const entries = thisGetTree.then(thisGetTree => thisGetTree.entries); * ``` */ export declare function getTree(args: GetTreeArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getTree. */ export interface GetTreeArgs { /** * Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `treeSha`. */ recursive?: boolean; /** * The name of the repository. */ repository: string; /** * The SHA1 value for the tree. */ treeSha: string; } /** * A collection of values returned by getTree. */ export interface GetTreeResult { /** * Objects (of `path`, `mode`, `type`, `size`, and `sha`) specifying a tree structure. */ readonly entries: outputs.GetTreeEntry[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly recursive?: boolean; readonly repository: string; readonly treeSha: string; } /** * Use this data source to retrieve information about a single tree. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const _this = github.getRepository({ * name: "example", * }); * const thisGetBranch = Promise.all([_this, _this]).then(([_this, _this1]) => github.getBranch({ * branch: _this.defaultBranch, * repository: _this1.name, * })); * const thisGetTree = Promise.all([_this, thisGetBranch]).then(([_this, thisGetBranch]) => github.getTree({ * recursive: false, * repository: _this.name, * treeSha: thisGetBranch.sha, * })); * export const entries = thisGetTree.then(thisGetTree => thisGetTree.entries); * ``` */ export declare function getTreeOutput(args: GetTreeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getTree. */ export interface GetTreeOutputArgs { /** * Setting this parameter to `true` returns the objects or subtrees referenced by the tree specified in `treeSha`. */ recursive?: pulumi.Input; /** * The name of the repository. */ repository: pulumi.Input; /** * The SHA1 value for the tree. */ treeSha: pulumi.Input; }