import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Projects in Oracle Cloud Infrastructure Devops service. * * Returns a list of projects. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProjects = oci.devops.getProjects({ * compartmentId: compartmentId, * id: projectId, * name: projectName, * state: projectState, * }); * ``` */ export declare function getProjects(args: GetProjectsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProjects. */ export interface GetProjectsArgs { /** * The OCID of the compartment in which to list resources. */ compartmentId: string; filters?: inputs.DevOps.GetProjectsFilter[]; /** * Unique identifier or OCID for listing a single resource by ID. */ id?: string; /** * A filter to return only resources that match the entire name given. */ name?: string; /** * A filter to return only Projects that matches the given lifecycleState. */ state?: string; } /** * A collection of values returned by getProjects. */ export interface GetProjectsResult { /** * The OCID of the compartment where the project is created. */ readonly compartmentId: string; readonly filters?: outputs.DevOps.GetProjectsFilter[]; /** * Unique identifier that is immutable on creation. */ readonly id?: string; /** * Project name (case-sensitive). */ readonly name?: string; /** * The list of project_collection. */ readonly projectCollections: outputs.DevOps.GetProjectsProjectCollection[]; /** * The current state of the project. */ readonly state?: string; } /** * This data source provides the list of Projects in Oracle Cloud Infrastructure Devops service. * * Returns a list of projects. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProjects = oci.devops.getProjects({ * compartmentId: compartmentId, * id: projectId, * name: projectName, * state: projectState, * }); * ``` */ export declare function getProjectsOutput(args: GetProjectsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProjects. */ export interface GetProjectsOutputArgs { /** * The OCID of the compartment in which to list resources. */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Unique identifier or OCID for listing a single resource by ID. */ id?: pulumi.Input; /** * A filter to return only resources that match the entire name given. */ name?: pulumi.Input; /** * A filter to return only Projects that matches the given lifecycleState. */ state?: pulumi.Input; } //# sourceMappingURL=getProjects.d.ts.map