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 Datasets in Oracle Cloud Infrastructure Data Labeling Service service. * * Returns a list of Datasets. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDatasets = oci.datalabellingservice.getDatasets({ * compartmentId: compartmentId, * annotationFormat: datasetAnnotationFormat, * displayName: datasetDisplayName, * id: datasetId, * state: datasetState, * }); * ``` */ export declare function getDatasets(args: GetDatasetsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatasets. */ export interface GetDatasetsArgs { /** * A filter to return only resources that match the entire annotation format given. */ annotationFormat?: string; /** * The ID of the compartment in which to list resources. */ compartmentId: string; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.DataLabellingService.GetDatasetsFilter[]; /** * Unique Dataset OCID */ id?: string; /** * A filter to return only resources whose lifecycleState matches this query param. */ state?: string; } /** * A collection of values returned by getDatasets. */ export interface GetDatasetsResult { /** * The annotation format name required for labeling records. */ readonly annotationFormat?: string; /** * The OCID of the compartment of the resource. */ readonly compartmentId: string; /** * The list of dataset_collection. */ readonly datasetCollections: outputs.DataLabellingService.GetDatasetsDatasetCollection[]; /** * A user-friendly display name for the resource. */ readonly displayName?: string; readonly filters?: outputs.DataLabellingService.GetDatasetsFilter[]; /** * The OCID of the Dataset. */ readonly id?: string; /** * The state of a dataset. CREATING - The dataset is being created. It will transition to ACTIVE when it is ready for labeling. ACTIVE - The dataset is ready for labeling. UPDATING - The dataset is being updated. It and its related resources may be unavailable for other updates until it returns to ACTIVE. NEEDS_ATTENTION - A dataset updation operation has failed due to validation or other errors and needs attention. DELETING - The dataset and its related resources are being deleted. DELETED - The dataset has been deleted and is no longer available. FAILED - The dataset has failed due to validation or other errors. */ readonly state?: string; } /** * This data source provides the list of Datasets in Oracle Cloud Infrastructure Data Labeling Service service. * * Returns a list of Datasets. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDatasets = oci.datalabellingservice.getDatasets({ * compartmentId: compartmentId, * annotationFormat: datasetAnnotationFormat, * displayName: datasetDisplayName, * id: datasetId, * state: datasetState, * }); * ``` */ export declare function getDatasetsOutput(args: GetDatasetsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatasets. */ export interface GetDatasetsOutputArgs { /** * A filter to return only resources that match the entire annotation format given. */ annotationFormat?: pulumi.Input; /** * The ID of the compartment in which to list resources. */ compartmentId: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Unique Dataset OCID */ id?: pulumi.Input; /** * A filter to return only resources whose lifecycleState matches this query param. */ state?: pulumi.Input; } //# sourceMappingURL=getDatasets.d.ts.map