GenericArtifact

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

Bases: object

The metadata of the artifact.

Attributes:

LIFECYCLE_STATE_AVAILABLE

A constant which can be used with the lifecycle_state property of a GenericArtifact.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a GenericArtifact.

LIFECYCLE_STATE_DELETING

A constant which can be used with the lifecycle_state property of a GenericArtifact.

artifact_path

[Required] Gets the artifact_path of this GenericArtifact.

compartment_id

[Required] Gets the compartment_id of this GenericArtifact.

defined_tags

[Required] Gets the defined_tags of this GenericArtifact.

display_name

[Required] Gets the display_name of this GenericArtifact.

freeform_tags

[Required] Gets the freeform_tags of this GenericArtifact.

id

[Required] Gets the id of this GenericArtifact.

lifecycle_state

[Required] Gets the lifecycle_state of this GenericArtifact.

repository_id

[Required] Gets the repository_id of this GenericArtifact.

sha256

[Required] Gets the sha256 of this GenericArtifact.

size_in_bytes

[Required] Gets the size_in_bytes of this GenericArtifact.

time_created

[Required] Gets the time_created of this GenericArtifact.

version

[Required] Gets the version of this GenericArtifact.

Methods:

__init__(**kwargs)

Initializes a new GenericArtifact object with values from keyword arguments.

LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a GenericArtifact. This constant has a value of “AVAILABLE”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a GenericArtifact. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a GenericArtifact. This constant has a value of “DELETING”

__init__(**kwargs)

Initializes a new GenericArtifact 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 GenericArtifact.

  • display_name (str) – The value to assign to the display_name property of this GenericArtifact.

  • compartment_id (str) – The value to assign to the compartment_id property of this GenericArtifact.

  • repository_id (str) – The value to assign to the repository_id property of this GenericArtifact.

  • artifact_path (str) – The value to assign to the artifact_path property of this GenericArtifact.

  • version (str) – The value to assign to the version property of this GenericArtifact.

  • sha256 (str) – The value to assign to the sha256 property of this GenericArtifact.

  • size_in_bytes (int) – The value to assign to the size_in_bytes property of this GenericArtifact.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this GenericArtifact. Allowed values for this property are: “AVAILABLE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this GenericArtifact.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this GenericArtifact.

  • time_created (datetime) – The value to assign to the time_created property of this GenericArtifact.

property artifact_path

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

Return type

str

property compartment_id

[Required] Gets the compartment_id of this GenericArtifact. The OCID of the repository’s compartment.

Returns

The compartment_id of this GenericArtifact.

Return type

str

property defined_tags

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

Return type

dict(str, dict(str, object))

property display_name

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

Return type

str

property freeform_tags

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

Return type

dict(str, str)

property id

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

Example: ocid1.genericartifact.oc1..exampleuniqueID

Returns

The id of this GenericArtifact.

Return type

str

property lifecycle_state

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

Allowed values for this property are: “AVAILABLE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this GenericArtifact.

Return type

str

property repository_id

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

Returns

The repository_id of this GenericArtifact.

Return type

str

property sha256

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

Return type

str

property size_in_bytes

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

Returns

The size_in_bytes of this GenericArtifact.

Return type

int

property time_created

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

Returns

The time_created of this GenericArtifact.

Return type

datetime

property version

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

Example: 1.1.0 or 1.2-beta-2

Returns

The version of this GenericArtifact.

Return type

str