UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

314 lines (313 loc) 10.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Harness Gitops Application. * * ## Import * * Import a Project level Gitops Application * * ```sh * $ pulumi import harness:platform/gitOpsApplications:GitOpsApplications example <organization_id>/<project_id>/<agent_id>/<app_name> * ``` */ export declare class GitOpsApplications extends pulumi.CustomResource { /** * Get an existing GitOpsApplications resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GitOpsApplicationsState, opts?: pulumi.CustomResourceOptions): GitOpsApplications; /** * Returns true if the given object is an instance of GitOpsApplications. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is GitOpsApplications; /** * Account identifier of the GitOps application. */ readonly accountId: pulumi.Output<string>; /** * Agent identifier of the GitOps application. */ readonly agentId: pulumi.Output<string>; /** * Definition of the GitOps application resource. */ readonly applications: pulumi.Output<outputs.platform.GitOpsApplicationsApplication[]>; /** * Cluster identifier of the GitOps application. */ readonly clusterId: pulumi.Output<string>; /** * Identifier of the GitOps application. */ readonly identifier: pulumi.Output<string | undefined>; /** * Kind of the GitOps application. */ readonly kind: pulumi.Output<string | undefined>; /** * Name of the GitOps application. */ readonly name: pulumi.Output<string>; /** * Options to remove existing finalizers to delete the GitOps application. */ readonly optionsRemoveExistingFinalizers: pulumi.Output<boolean | undefined>; /** * Organization identifier of the GitOps application. */ readonly orgId: pulumi.Output<string>; /** * Reference to the project corresponding to this GitOps application. An empty string means that the GitOps application belongs to the 'default' project. */ readonly project: pulumi.Output<string | undefined>; /** * Project identifier of the GitOps application. */ readonly projectId: pulumi.Output<string>; /** * Project names to filter the corresponding GitOps applications. */ readonly queryProject: pulumi.Output<string | undefined>; /** * Forces the GitOps application to reconcile when set to true. */ readonly queryRefresh: pulumi.Output<string | undefined>; /** * Repo URL to restrict returned list applications. */ readonly queryRepo: pulumi.Output<string | undefined>; /** * Shows modifications after a version that is specified with a watch call. */ readonly queryResourceVersion: pulumi.Output<string | undefined>; /** * Filters GitOps applications corresponding to the labels. */ readonly querySelector: pulumi.Output<string | undefined>; /** * Repository identifier of the GitOps application. */ readonly repoId: pulumi.Output<string>; /** * Request cascade to delete the GitOps application. */ readonly requestCascade: pulumi.Output<boolean | undefined>; /** * Request name to delete the GitOps application. */ readonly requestName: pulumi.Output<string | undefined>; /** * Request propagation policy to delete the GitOps application. */ readonly requestPropagationPolicy: pulumi.Output<string | undefined>; /** * Indicates if the GitOps application should be updated if existing and inserted if not. */ readonly upsert: pulumi.Output<boolean | undefined>; /** * Indicates if the GitOps application has to be validated. */ readonly validate: pulumi.Output<boolean | undefined>; /** * Create a GitOpsApplications resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: GitOpsApplicationsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GitOpsApplications resources. */ export interface GitOpsApplicationsState { /** * Account identifier of the GitOps application. */ accountId?: pulumi.Input<string>; /** * Agent identifier of the GitOps application. */ agentId?: pulumi.Input<string>; /** * Definition of the GitOps application resource. */ applications?: pulumi.Input<pulumi.Input<inputs.platform.GitOpsApplicationsApplication>[]>; /** * Cluster identifier of the GitOps application. */ clusterId?: pulumi.Input<string>; /** * Identifier of the GitOps application. */ identifier?: pulumi.Input<string>; /** * Kind of the GitOps application. */ kind?: pulumi.Input<string>; /** * Name of the GitOps application. */ name?: pulumi.Input<string>; /** * Options to remove existing finalizers to delete the GitOps application. */ optionsRemoveExistingFinalizers?: pulumi.Input<boolean>; /** * Organization identifier of the GitOps application. */ orgId?: pulumi.Input<string>; /** * Reference to the project corresponding to this GitOps application. An empty string means that the GitOps application belongs to the 'default' project. */ project?: pulumi.Input<string>; /** * Project identifier of the GitOps application. */ projectId?: pulumi.Input<string>; /** * Project names to filter the corresponding GitOps applications. */ queryProject?: pulumi.Input<string>; /** * Forces the GitOps application to reconcile when set to true. */ queryRefresh?: pulumi.Input<string>; /** * Repo URL to restrict returned list applications. */ queryRepo?: pulumi.Input<string>; /** * Shows modifications after a version that is specified with a watch call. */ queryResourceVersion?: pulumi.Input<string>; /** * Filters GitOps applications corresponding to the labels. */ querySelector?: pulumi.Input<string>; /** * Repository identifier of the GitOps application. */ repoId?: pulumi.Input<string>; /** * Request cascade to delete the GitOps application. */ requestCascade?: pulumi.Input<boolean>; /** * Request name to delete the GitOps application. */ requestName?: pulumi.Input<string>; /** * Request propagation policy to delete the GitOps application. */ requestPropagationPolicy?: pulumi.Input<string>; /** * Indicates if the GitOps application should be updated if existing and inserted if not. */ upsert?: pulumi.Input<boolean>; /** * Indicates if the GitOps application has to be validated. */ validate?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a GitOpsApplications resource. */ export interface GitOpsApplicationsArgs { /** * Account identifier of the GitOps application. */ accountId: pulumi.Input<string>; /** * Agent identifier of the GitOps application. */ agentId: pulumi.Input<string>; /** * Definition of the GitOps application resource. */ applications: pulumi.Input<pulumi.Input<inputs.platform.GitOpsApplicationsApplication>[]>; /** * Cluster identifier of the GitOps application. */ clusterId: pulumi.Input<string>; /** * Identifier of the GitOps application. */ identifier?: pulumi.Input<string>; /** * Kind of the GitOps application. */ kind?: pulumi.Input<string>; /** * Name of the GitOps application. */ name?: pulumi.Input<string>; /** * Options to remove existing finalizers to delete the GitOps application. */ optionsRemoveExistingFinalizers?: pulumi.Input<boolean>; /** * Organization identifier of the GitOps application. */ orgId: pulumi.Input<string>; /** * Reference to the project corresponding to this GitOps application. An empty string means that the GitOps application belongs to the 'default' project. */ project?: pulumi.Input<string>; /** * Project identifier of the GitOps application. */ projectId: pulumi.Input<string>; /** * Project names to filter the corresponding GitOps applications. */ queryProject?: pulumi.Input<string>; /** * Forces the GitOps application to reconcile when set to true. */ queryRefresh?: pulumi.Input<string>; /** * Repo URL to restrict returned list applications. */ queryRepo?: pulumi.Input<string>; /** * Shows modifications after a version that is specified with a watch call. */ queryResourceVersion?: pulumi.Input<string>; /** * Filters GitOps applications corresponding to the labels. */ querySelector?: pulumi.Input<string>; /** * Repository identifier of the GitOps application. */ repoId: pulumi.Input<string>; /** * Request cascade to delete the GitOps application. */ requestCascade?: pulumi.Input<boolean>; /** * Request name to delete the GitOps application. */ requestName?: pulumi.Input<string>; /** * Request propagation policy to delete the GitOps application. */ requestPropagationPolicy?: pulumi.Input<string>; /** * Indicates if the GitOps application should be updated if existing and inserted if not. */ upsert?: pulumi.Input<boolean>; /** * Indicates if the GitOps application has to be validated. */ validate?: pulumi.Input<boolean>; }