UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

70 lines 2.22 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.getRepoOutput = exports.getRepo = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Data source for retrieving a Harness repo. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const exampleByIdentifier = harness.platform.getRepo({ * identifier: "identifier", * orgId: "org_id", * projectId: "proj_id", * }); * ``` */ function getRepo(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("harness:platform/getRepo:getRepo", { "defaultBranch": args.defaultBranch, "description": args.description, "gitIgnore": args.gitIgnore, "identifier": args.identifier, "license": args.license, "orgId": args.orgId, "projectId": args.projectId, "readme": args.readme, "sources": args.sources, }, opts); } exports.getRepo = getRepo; /** * Data source for retrieving a Harness repo. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const exampleByIdentifier = harness.platform.getRepo({ * identifier: "identifier", * orgId: "org_id", * projectId: "proj_id", * }); * ``` */ function getRepoOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("harness:platform/getRepo:getRepo", { "defaultBranch": args.defaultBranch, "description": args.description, "gitIgnore": args.gitIgnore, "identifier": args.identifier, "license": args.license, "orgId": args.orgId, "projectId": args.projectId, "readme": args.readme, "sources": args.sources, }, opts); } exports.getRepoOutput = getRepoOutput; //# sourceMappingURL=getRepo.js.map