UNPKG

@pulumi/github

Version:

A Pulumi package for creating and managing github cloud resources.

78 lines 2.57 kB
"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.getOrganizationTeamsOutput = exports.getOrganizationTeams = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to retrieve information about all GitHub teams in an organization. * * ## Example Usage * * To retrieve *all* teams of the organization: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const all = github.getOrganizationTeams({}); * ``` * * To retrieve only the team's at the root of the organization: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const rootTeams = github.getOrganizationTeams({ * rootTeamsOnly: true, * }); * ``` */ function getOrganizationTeams(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("github:index/getOrganizationTeams:getOrganizationTeams", { "resultsPerPage": args.resultsPerPage, "rootTeamsOnly": args.rootTeamsOnly, "summaryOnly": args.summaryOnly, }, opts); } exports.getOrganizationTeams = getOrganizationTeams; /** * Use this data source to retrieve information about all GitHub teams in an organization. * * ## Example Usage * * To retrieve *all* teams of the organization: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const all = github.getOrganizationTeams({}); * ``` * * To retrieve only the team's at the root of the organization: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const rootTeams = github.getOrganizationTeams({ * rootTeamsOnly: true, * }); * ``` */ function getOrganizationTeamsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("github:index/getOrganizationTeams:getOrganizationTeams", { "resultsPerPage": args.resultsPerPage, "rootTeamsOnly": args.rootTeamsOnly, "summaryOnly": args.summaryOnly, }, opts); } exports.getOrganizationTeamsOutput = getOrganizationTeamsOutput; //# sourceMappingURL=getOrganizationTeams.js.map