"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAncestryOutput = exports.getAncestry = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Retrieve the ancestors for a project.
 * See the [REST API](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getAncestry) for more details.
 *
 * ## Example Usage
 */
function getAncestry(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("gcp:projects/getAncestry:getAncestry", {
        "project": args.project,
    }, opts);
}
exports.getAncestry = getAncestry;
/**
 * Retrieve the ancestors for a project.
 * See the [REST API](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getAncestry) for more details.
 *
 * ## Example Usage
 */
function getAncestryOutput(args, opts) {
    args = args || {};
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("gcp:projects/getAncestry:getAncestry", {
        "project": args.project,
    }, opts);
}
exports.getAncestryOutput = getAncestryOutput;
//# sourceMappingURL=getAncestry.js.map