import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Job resource in Oracle Cloud Infrastructure Ai Language service. * * Creates a new language service async job. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testJob = new oci.ailanguage.Job("test_job", { * compartmentId: compartmentId, * inputLocation: { * bucket: jobInputLocationBucket, * locationType: jobInputLocationLocationType, * namespace: jobInputLocationNamespace, * objectNames: jobInputLocationObjectNames, * prefix: jobInputLocationPrefix, * }, * modelMetadataDetails: [{ * configuration: [{ * configurationMap: jobModelMetadataDetailsConfigurationConfigurationMap, * }], * endpointId: testEndpoint.id, * languageCode: jobModelMetadataDetailsLanguageCode, * modelId: testModel.id, * modelType: jobModelMetadataDetailsModelType, * }], * outputLocation: { * bucket: jobOutputLocationBucket, * namespace: jobOutputLocationNamespace, * prefix: jobOutputLocationPrefix, * }, * description: jobDescription, * displayName: jobDisplayName, * inputConfiguration: { * configuration: [{ * config: jobInputConfigurationConfigurationConfig, * }], * documentTypes: jobInputConfigurationDocumentTypes, * }, * }); * ``` * * ## Import * * Jobs can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:AiLanguage/job:Job test_job "id" * ``` */ export declare class Job extends pulumi.CustomResource { /** * Get an existing Job 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?: JobState, opts?: pulumi.CustomResourceOptions): Job; /** * Returns true if the given object is an instance of Job. 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 Job; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. */ readonly compartmentId: pulumi.Output; /** * Number of documents processed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. */ readonly completedDocuments: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the job. */ readonly createdBy: pulumi.Output; /** * (Updatable) A short description of the job. */ readonly description: pulumi.Output; /** * (Updatable) A user-friendly display name for the job. */ readonly displayName: pulumi.Output; /** * Number of documents failed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. */ readonly failedDocuments: pulumi.Output; /** * input documents configuration by default TXT files will be processed and this behaviour will not change in future after adding new types */ readonly inputConfiguration: pulumi.Output; /** * document location and other meta data about documents For TXT only ObjectStoragePrefixLocation supported For CSV only ObjectStorageFileNameLocation is supported For this release only one file is supported for ObjectStorageFileNameLocation i.e CSV file type */ readonly inputLocation: pulumi.Output; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * training model details For this release only one model is allowed to be input here. One of the three modelType, ModelId, endpointId should be given other wise error will be thrown from API */ readonly modelMetadataDetails: pulumi.Output; /** * Object storage output location to write inference results */ readonly outputLocation: pulumi.Output; /** * Number of documents still to process. For CSV this signifies number of rows and for TXT this signifies number of files. */ readonly pendingDocuments: pulumi.Output; /** * How much progress the operation has made, vs the total amount of work that must be performed. */ readonly percentComplete: pulumi.Output; /** * The current state of the Job. */ readonly state: pulumi.Output; /** * Job accepted time. */ readonly timeAccepted: pulumi.Output; /** * Job finished time. */ readonly timeCompleted: pulumi.Output; /** * Job started time. */ readonly timeStarted: pulumi.Output; /** * Total number of documents given as input for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. */ readonly totalDocuments: pulumi.Output; /** * Time to live duration in days for Job. Job will be available till max 90 days. */ readonly ttlInDays: pulumi.Output; /** * warnings count */ readonly warningsCount: pulumi.Output; /** * Create a Job 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: JobArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Job resources. */ export interface JobState { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. */ compartmentId?: pulumi.Input; /** * Number of documents processed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. */ completedDocuments?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the user who created the job. */ createdBy?: pulumi.Input; /** * (Updatable) A short description of the job. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the job. */ displayName?: pulumi.Input; /** * Number of documents failed for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. */ failedDocuments?: pulumi.Input; /** * input documents configuration by default TXT files will be processed and this behaviour will not change in future after adding new types */ inputConfiguration?: pulumi.Input; /** * document location and other meta data about documents For TXT only ObjectStoragePrefixLocation supported For CSV only ObjectStorageFileNameLocation is supported For this release only one file is supported for ObjectStorageFileNameLocation i.e CSV file type */ inputLocation?: pulumi.Input; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * training model details For this release only one model is allowed to be input here. One of the three modelType, ModelId, endpointId should be given other wise error will be thrown from API */ modelMetadataDetails?: pulumi.Input[] | undefined>; /** * Object storage output location to write inference results */ outputLocation?: pulumi.Input; /** * Number of documents still to process. For CSV this signifies number of rows and for TXT this signifies number of files. */ pendingDocuments?: pulumi.Input; /** * How much progress the operation has made, vs the total amount of work that must be performed. */ percentComplete?: pulumi.Input; /** * The current state of the Job. */ state?: pulumi.Input; /** * Job accepted time. */ timeAccepted?: pulumi.Input; /** * Job finished time. */ timeCompleted?: pulumi.Input; /** * Job started time. */ timeStarted?: pulumi.Input; /** * Total number of documents given as input for prediction. For CSV this signifies number of rows and for TXT this signifies number of files. */ totalDocuments?: pulumi.Input; /** * Time to live duration in days for Job. Job will be available till max 90 days. */ ttlInDays?: pulumi.Input; /** * warnings count */ warningsCount?: pulumi.Input; } /** * The set of arguments for constructing a Job resource. */ export interface JobArgs { /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want to create the job. */ compartmentId: pulumi.Input; /** * (Updatable) A short description of the job. */ description?: pulumi.Input; /** * (Updatable) A user-friendly display name for the job. */ displayName?: pulumi.Input; /** * input documents configuration by default TXT files will be processed and this behaviour will not change in future after adding new types */ inputConfiguration?: pulumi.Input; /** * document location and other meta data about documents For TXT only ObjectStoragePrefixLocation supported For CSV only ObjectStorageFileNameLocation is supported For this release only one file is supported for ObjectStorageFileNameLocation i.e CSV file type */ inputLocation: pulumi.Input; /** * training model details For this release only one model is allowed to be input here. One of the three modelType, ModelId, endpointId should be given other wise error will be thrown from API */ modelMetadataDetails: pulumi.Input[]>; /** * Object storage output location to write inference results */ outputLocation: pulumi.Input; } //# sourceMappingURL=job.d.ts.map