GenericArtifactSummary

class oci.artifacts.models.GenericArtifactSummary(**kwargs)

Bases: object

Summary information for an artifact.

Methods

__init__(**kwargs) Initializes a new GenericArtifactSummary object with values from keyword arguments.

Attributes

artifact_path [Required] Gets the artifact_path of this GenericArtifactSummary.
compartment_id [Required] Gets the compartment_id of this GenericArtifactSummary.
defined_tags [Required] Gets the defined_tags of this GenericArtifactSummary.
display_name [Required] Gets the display_name of this GenericArtifactSummary.
freeform_tags [Required] Gets the freeform_tags of this GenericArtifactSummary.
id [Required] Gets the id of this GenericArtifactSummary.
lifecycle_state [Required] Gets the lifecycle_state of this GenericArtifactSummary.
repository_id [Required] Gets the repository_id of this GenericArtifactSummary.
sha256 [Required] Gets the sha256 of this GenericArtifactSummary.
size_in_bytes [Required] Gets the size_in_bytes of this GenericArtifactSummary.
time_created [Required] Gets the time_created of this GenericArtifactSummary.
version [Required] Gets the version of this GenericArtifactSummary.
__init__(**kwargs)

Initializes a new GenericArtifactSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this GenericArtifactSummary.
  • display_name (str) – The value to assign to the display_name property of this GenericArtifactSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this GenericArtifactSummary.
  • repository_id (str) – The value to assign to the repository_id property of this GenericArtifactSummary.
  • artifact_path (str) – The value to assign to the artifact_path property of this GenericArtifactSummary.
  • version (str) – The value to assign to the version property of this GenericArtifactSummary.
  • sha256 (str) – The value to assign to the sha256 property of this GenericArtifactSummary.
  • size_in_bytes (int) – The value to assign to the size_in_bytes property of this GenericArtifactSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this GenericArtifactSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this GenericArtifactSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this GenericArtifactSummary.
  • time_created (datetime) – The value to assign to the time_created property of this GenericArtifactSummary.
artifact_path

[Required] Gets the artifact_path of this GenericArtifactSummary. 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

Returns:The artifact_path of this GenericArtifactSummary.
Return type:str
compartment_id

[Required] Gets the compartment_id of this GenericArtifactSummary. The OCID of the artifact’s compartment.

Returns:The compartment_id of this GenericArtifactSummary.
Return type:str
defined_tags

[Required] Gets the defined_tags of this GenericArtifactSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this GenericArtifactSummary.
Return type:dict(str, dict(str, object))
display_name

[Required] Gets the display_name of this GenericArtifactSummary. The artifact name with the format of <artifact-path>:<artifact-version>. The artifact name is truncated to a maximum length of 255.

Example: project01/my-web-app/artifact-abc:1.0.0

Returns:The display_name of this GenericArtifactSummary.
Return type:str
freeform_tags

[Required] Gets the freeform_tags of this GenericArtifactSummary. 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”}

Returns:The freeform_tags of this GenericArtifactSummary.
Return type:dict(str, str)
id

[Required] Gets the id of this GenericArtifactSummary. The OCID of the artifact.

Example: ocid1.genericartifact.oc1..exampleuniqueID

Returns:The id of this GenericArtifactSummary.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this GenericArtifactSummary. The current state of the generic artifact.

Returns:The lifecycle_state of this GenericArtifactSummary.
Return type:str
repository_id

[Required] Gets the repository_id of this GenericArtifactSummary. The OCID of the repository.

Returns:The repository_id of this GenericArtifactSummary.
Return type:str
sha256

[Required] Gets the sha256 of this GenericArtifactSummary. 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.

Returns:The sha256 of this GenericArtifactSummary.
Return type:str
size_in_bytes

[Required] Gets the size_in_bytes of this GenericArtifactSummary. The size of the artifact in bytes.

Returns:The size_in_bytes of this GenericArtifactSummary.
Return type:int
time_created

[Required] Gets the time_created of this GenericArtifactSummary. An RFC 3339 timestamp indicating when the artifact was created.

Returns:The time_created of this GenericArtifactSummary.
Return type:datetime
version

[Required] Gets the version of this GenericArtifactSummary. A user-defined string to describe the artifact version.

Example: 1.1.0 or 1.2-beta-2

Returns:The version of this GenericArtifactSummary.
Return type:str