import * as pulumi from "@pulumi/pulumi"; /** * Provides the Artifact By Path resource in Oracle Cloud Infrastructure Generic Artifacts Content service. This resource supports upload/download the content of a generic artifact by specifying the repository id, artifact path, and artifact version * * ## Note * * This resource is not supported to delete generic artifact. * In order to delete generic artifact, you can use `oci.Artifacts.GenericArtifact` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testArtifactByPath = new oci.genericartifactscontent.ArtifactByPath("test_artifact_by_path", { * artifactPath: artifactPath, * repositoryId: testRepository.id, * version: version, * source: source, * }); * ``` */ export declare class ArtifactByPath extends pulumi.CustomResource { /** * Get an existing ArtifactByPath 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?: ArtifactByPathState, opts?: pulumi.CustomResourceOptions): ArtifactByPath; /** * Returns true if the given object is an instance of ArtifactByPath. 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 ArtifactByPath; readonly artifactId: pulumi.Output; /** * A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version. */ readonly artifactPath: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment. */ readonly compartmentId: pulumi.Output; /** * Content to be uploaded as the artifact. Cannot be defined if `source` is defined. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly content: pulumi.Output; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * The artifact name with the format of `:`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0` */ readonly displayName: pulumi.Output; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository. */ readonly repositoryId: pulumi.Output; /** * The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties. */ readonly sha256: pulumi.Output; /** * The size of the artifact in bytes. */ readonly sizeInBytes: pulumi.Output; /** * A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined. */ readonly source: pulumi.Output; /** * The current state of the artifact. */ readonly state: pulumi.Output; /** * An RFC 3339 timestamp indicating when the repository was created. */ readonly timeCreated: pulumi.Output; /** * A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2` */ readonly version: pulumi.Output; /** * Create a ArtifactByPath 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: ArtifactByPathArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ArtifactByPath resources. */ export interface ArtifactByPathState { artifactId?: pulumi.Input; /** * A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version. */ artifactPath?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the repository's compartment. */ compartmentId?: pulumi.Input; /** * Content to be uploaded as the artifact. Cannot be defined if `source` is defined. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ content?: pulumi.Input; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The artifact name with the format of `:`. The artifact name is truncated to a maximum length of 255. Example: `project01/my-web-app/artifact-abc:1.0.0` */ displayName?: pulumi.Input; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository. */ repositoryId?: pulumi.Input; /** * The SHA256 digest for the artifact. When you upload an artifact to the repository, a SHA256 digest is calculated and added to the artifact properties. */ sha256?: pulumi.Input; /** * The size of the artifact in bytes. */ sizeInBytes?: pulumi.Input; /** * A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined. */ source?: pulumi.Input; /** * The current state of the artifact. */ state?: pulumi.Input; /** * An RFC 3339 timestamp indicating when the repository was created. */ timeCreated?: pulumi.Input; /** * A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2` */ version?: pulumi.Input; } /** * The set of arguments for constructing a ArtifactByPath resource. */ export interface ArtifactByPathArgs { /** * A user-defined path to describe the location of an artifact. You can use slashes to organize the repository, but slashes do not create a directory structure. An artifact path does not include an artifact version. */ artifactPath: pulumi.Input; /** * Content to be uploaded as the artifact. Cannot be defined if `source` is defined. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ content?: pulumi.Input; /** * The [OCID](https://www.terraform.io/iaas/Content/General/Concepts/identifiers.htm) of the repository. */ repositoryId: pulumi.Input; /** * A path to a file on the local system to be uploaded as the artifact. Cannot be defined if `content` is defined. */ source?: pulumi.Input; /** * A user-defined string to describe the artifact version. Example: `1.1.0` or `1.2-beta-2` */ version: pulumi.Input; } //# sourceMappingURL=artifactByPath.d.ts.map