UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

65 lines 2.19 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getGitopsRepositoryOutput = exports.getGitopsRepository = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Data Source for fetching a Harness GitOps Repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsRepository({ * accountId: "account_id", * agentId: "agent_id", * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ function getGitopsRepository(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("harness:platform/getGitopsRepository:getGitopsRepository", { "accountId": args.accountId, "agentId": args.agentId, "credsOnly": args.credsOnly, "identifier": args.identifier, "orgId": args.orgId, "projectId": args.projectId, "queryForceRefresh": args.queryForceRefresh, "queryProject": args.queryProject, "queryRepo": args.queryRepo, "updateMasks": args.updateMasks, "upsert": args.upsert, }, opts); } exports.getGitopsRepository = getGitopsRepository; /** * Data Source for fetching a Harness GitOps Repository. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = harness.platform.getGitopsRepository({ * accountId: "account_id", * agentId: "agent_id", * identifier: "identifier", * orgId: "org_id", * projectId: "project_id", * }); * ``` */ function getGitopsRepositoryOutput(args, opts) { return pulumi.output(args).apply((a) => getGitopsRepository(a, opts)); } exports.getGitopsRepositoryOutput = getGitopsRepositoryOutput; //# sourceMappingURL=getGitopsRepository.js.map