Show / Hide Table of Contents

Class GenericArtifact

The metadata of the artifact.

Inheritance
object
GenericArtifact
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ArtifactsService.Models
Assembly: OCI.DotNetSDK.Artifacts.dll
Syntax
public class GenericArtifact

Properties

ArtifactPath

Declaration
[Required(ErrorMessage = "ArtifactPath is required.")]
[JsonProperty(PropertyName = "artifactPath")]
public string ArtifactPath { get; set; }
Property Value
Type Description
string

A user-defined path to describe the location of an artifact. Slashes do not create a directory structure, but you can use slashes to organize the repository. An artifact path does not include an artifact version.
Example: project01/my-web-app/artifact-abc

Remarks

Required

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the repository's compartment.

Remarks

Required

DefinedTags

Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

Remarks

Required

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

FreeformTags

Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

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.
Example: {"Department": "Finance"}

Remarks

Required

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The OCID of the artifact.
Example: ocid1.genericartifact.oc1..exampleuniqueID

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public GenericArtifact.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
GenericArtifact.LifecycleStateEnum?

The current state of the artifact.

Remarks

Required

RepositoryId

Declaration
[Required(ErrorMessage = "RepositoryId is required.")]
[JsonProperty(PropertyName = "repositoryId")]
public string RepositoryId { get; set; }
Property Value
Type Description
string

The OCID of the repository.

Remarks

Required

Sha256

Declaration
[Required(ErrorMessage = "Sha256 is required.")]
[JsonProperty(PropertyName = "sha256")]
public string Sha256 { get; set; }
Property Value
Type Description
string

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.

Remarks

Required

SizeInBytes

Declaration
[Required(ErrorMessage = "SizeInBytes is required.")]
[JsonProperty(PropertyName = "sizeInBytes")]
public long? SizeInBytes { get; set; }
Property Value
Type Description
long?

The size of the artifact in bytes.

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

An RFC 3339 timestamp indicating when the repository was created.

Remarks

Required

Version

Declaration
[Required(ErrorMessage = "Version is required.")]
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }
Property Value
Type Description
string

A user-defined string to describe the artifact version.
Example: 1.1.0 or 1.2-beta-2

Remarks

Required

In this article
Back to top