import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for managing a Harness Gitops Application. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * const example = new harness.platform.GitOpsApplications("example", { * applications: [{ * metadatas: [{ * annotations: {}, * labels: { * "harness.io/serviceRef": "service_id", * "harness.io/envRef": "env_id", * }, * name: "appname123", * }], * specs: [{ * syncPolicies: [{ * syncOptions: [ * "PrunePropagationPolicy=undefined", * "CreateNamespace=false", * "Validate=false", * "skipSchemaValidations=false", * "autoCreateNamespace=false", * "pruneLast=false", * "applyOutofSyncOnly=false", * "Replace=false", * "retry=false", * ], * }], * sources: [{ * targetRevision: "master", * repoUrl: "https://github.com/willycoll/argocd-example-apps.git", * path: "helm-guestbook", * }], * destinations: [{ * namespace: "namespace-123", * server: "https://1.3.4.5", * }], * }], * }], * projectId: "project_id", * orgId: "org_id", * accountId: "account_id", * identifier: "identifier", * clusterId: "cluster_id", * repoId: "repo_id", * agentId: "agent_id", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import a Project level Gitops Application * * ```sh * $ pulumi import harness:platform/gitOpsApplications:GitOpsApplications example /// * ``` */ 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, 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. * * @deprecated This field is deprecated and will be removed in a future release. */ readonly accountId: pulumi.Output; /** * Agent identifier of the GitOps application. */ readonly agentId: pulumi.Output; /** * Definition of the GitOps application resource. */ readonly applications: pulumi.Output; /** * Cluster identifier of the GitOps application. */ readonly clusterId: pulumi.Output; /** * Identifier of the GitOps application. * * @deprecated This field is deprecated and will be removed in a future release. */ readonly identifier: pulumi.Output; /** * Kind of the GitOps application. */ readonly kind: pulumi.Output; /** * Name of the GitOps application. */ readonly name: pulumi.Output; /** * Options to remove existing finalizers to delete the GitOps application. */ readonly optionsRemoveExistingFinalizers: pulumi.Output; /** * Organization identifier of the GitOps application. */ readonly orgId: pulumi.Output; /** * The ArgoCD project name corresponding to this GitOps application. An empty string means that the GitOps application belongs to the default project created by Harness. */ readonly project: pulumi.Output; /** * Project identifier of the GitOps application. */ readonly projectId: pulumi.Output; /** * Repository identifier of the GitOps application. When using skipRepoValidation, this field is not required. */ readonly repoId: pulumi.Output; /** * List of repository identifiers of the GitOps for Multi-Source application. Not required if skipRepoValidation is set to true. */ readonly repoIds: pulumi.Output; /** * Request cascade to delete the GitOps application. */ readonly requestCascade: pulumi.Output; /** * Request propagation policy to delete the GitOps application. */ readonly requestPropagationPolicy: pulumi.Output; /** * Indicates if the GitOps application should skip validate repository definition exists. */ readonly skipRepoValidation: pulumi.Output; /** * Indicates if the GitOps application should be updated if existing and inserted if not. */ readonly upsert: pulumi.Output; /** * Indicates if the GitOps application yaml has to be validated. */ readonly validate: pulumi.Output; /** * 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. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input; /** * Agent identifier of the GitOps application. */ agentId?: pulumi.Input; /** * Definition of the GitOps application resource. */ applications?: pulumi.Input[] | undefined>; /** * Cluster identifier of the GitOps application. */ clusterId?: pulumi.Input; /** * Identifier of the GitOps application. * * @deprecated This field is deprecated and will be removed in a future release. */ identifier?: pulumi.Input; /** * Kind of the GitOps application. */ kind?: pulumi.Input; /** * Name of the GitOps application. */ name?: pulumi.Input; /** * Options to remove existing finalizers to delete the GitOps application. */ optionsRemoveExistingFinalizers?: pulumi.Input; /** * Organization identifier of the GitOps application. */ orgId?: pulumi.Input; /** * The ArgoCD project name corresponding to this GitOps application. An empty string means that the GitOps application belongs to the default project created by Harness. */ project?: pulumi.Input; /** * Project identifier of the GitOps application. */ projectId?: pulumi.Input; /** * Repository identifier of the GitOps application. When using skipRepoValidation, this field is not required. */ repoId?: pulumi.Input; /** * List of repository identifiers of the GitOps for Multi-Source application. Not required if skipRepoValidation is set to true. */ repoIds?: pulumi.Input[] | undefined>; /** * Request cascade to delete the GitOps application. */ requestCascade?: pulumi.Input; /** * Request propagation policy to delete the GitOps application. */ requestPropagationPolicy?: pulumi.Input; /** * Indicates if the GitOps application should skip validate repository definition exists. */ skipRepoValidation?: pulumi.Input; /** * Indicates if the GitOps application should be updated if existing and inserted if not. */ upsert?: pulumi.Input; /** * Indicates if the GitOps application yaml has to be validated. */ validate?: pulumi.Input; } /** * The set of arguments for constructing a GitOpsApplications resource. */ export interface GitOpsApplicationsArgs { /** * Account identifier of the GitOps application. * * @deprecated This field is deprecated and will be removed in a future release. */ accountId?: pulumi.Input; /** * Agent identifier of the GitOps application. */ agentId: pulumi.Input; /** * Definition of the GitOps application resource. */ applications: pulumi.Input[]>; /** * Cluster identifier of the GitOps application. */ clusterId: pulumi.Input; /** * Identifier of the GitOps application. * * @deprecated This field is deprecated and will be removed in a future release. */ identifier?: pulumi.Input; /** * Kind of the GitOps application. */ kind?: pulumi.Input; /** * Name of the GitOps application. */ name?: pulumi.Input; /** * Options to remove existing finalizers to delete the GitOps application. */ optionsRemoveExistingFinalizers?: pulumi.Input; /** * Organization identifier of the GitOps application. */ orgId: pulumi.Input; /** * The ArgoCD project name corresponding to this GitOps application. An empty string means that the GitOps application belongs to the default project created by Harness. */ project?: pulumi.Input; /** * Project identifier of the GitOps application. */ projectId: pulumi.Input; /** * Repository identifier of the GitOps application. When using skipRepoValidation, this field is not required. */ repoId?: pulumi.Input; /** * List of repository identifiers of the GitOps for Multi-Source application. Not required if skipRepoValidation is set to true. */ repoIds?: pulumi.Input[] | undefined>; /** * Request cascade to delete the GitOps application. */ requestCascade?: pulumi.Input; /** * Request propagation policy to delete the GitOps application. */ requestPropagationPolicy?: pulumi.Input; /** * Indicates if the GitOps application should skip validate repository definition exists. */ skipRepoValidation?: pulumi.Input; /** * Indicates if the GitOps application should be updated if existing and inserted if not. */ upsert?: pulumi.Input; /** * Indicates if the GitOps application yaml has to be validated. */ validate?: pulumi.Input; } //# sourceMappingURL=gitOpsApplications.d.ts.map