UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

72 lines 2.79 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.getGitRepositoryOutput = exports.getGitRepository = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Use this data source to access information about a **single** (existing) Git Repository within Azure DevOps. * To read information about **multiple** Git Repositories use the data source `azuredevops.getRepositories` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getProject({ * name: "Example Project", * }); * // Load a specific Git repository by name * const example_single_repo = example.then(example => azuredevops.getGitRepository({ * projectId: example.id, * name: "Example Repository", * })); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Git API](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/?view=azure-devops-rest-7.0) */ function getGitRepository(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuredevops:index/getGitRepository:getGitRepository", { "name": args.name, "projectId": args.projectId, }, opts); } exports.getGitRepository = getGitRepository; /** * Use this data source to access information about a **single** (existing) Git Repository within Azure DevOps. * To read information about **multiple** Git Repositories use the data source `azuredevops.getRepositories` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const example = azuredevops.getProject({ * name: "Example Project", * }); * // Load a specific Git repository by name * const example_single_repo = example.then(example => azuredevops.getGitRepository({ * projectId: example.id, * name: "Example Repository", * })); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Git API](https://docs.microsoft.com/en-us/rest/api/azure/devops/git/?view=azure-devops-rest-7.0) */ function getGitRepositoryOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuredevops:index/getGitRepository:getGitRepository", { "name": args.name, "projectId": args.projectId, }, opts); } exports.getGitRepositoryOutput = getGitRepositoryOutput; //# sourceMappingURL=getGitRepository.js.map