Generic Artifacts Content Common Types

DBMS_CLOUD_OCI_GENERIC_ARTIFACTS_CONTENT_VARCHAR2_TBL Type

Nested table type of varchar2(32767).

Syntax

CREATE OR REPLACE NONEDITIONABLE TYPE dbms_cloud_oci_generic_artifacts_content_varchar2_tbl FORCE IS TABLE OF (varchar2(32767)) NOT PERSISTABLE;

DBMS_CLOUD_OCI_GENERIC_ARTIFACTS_CONTENT_ERROR_T Type

Syntax

CREATE OR REPLACE NONEDITIONABLE TYPE dbms_cloud_oci_generic_artifacts_content_error_t FORCE AUTHID CURRENT_USER IS OBJECT (
  code varchar2(32767),
  message varchar2(32767),
  CONSTRUCTOR FUNCTION dbms_cloud_oci_generic_artifacts_content_error_t
    RETURN SELF AS RESULT,
  CONSTRUCTOR FUNCTION dbms_cloud_oci_generic_artifacts_content_error_t (
    code varchar2,
    message varchar2
  ) RETURN SELF AS RESULT
) NOT PERSISTABLE;

Fields

Field Description

code

(required) A short error code that defines the error, meant for programmatic parsing. See API Errors.

message

(required) A human-readable error string.

DBMS_CLOUD_OCI_GENERIC_ARTIFACTS_CONTENT_GENERIC_ARTIFACT_T Type

The metadata of the artifact.

Syntax

CREATE OR REPLACE NONEDITIONABLE TYPE dbms_cloud_oci_generic_artifacts_content_generic_artifact_t FORCE AUTHID CURRENT_USER IS OBJECT (
  id varchar2(32767),
  display_name varchar2(32767),
  compartment_id varchar2(32767),
  repository_id varchar2(32767),
  artifact_path varchar2(32767),
  version varchar2(32767),
  sha256 varchar2(32767),
  size_in_bytes number,
  lifecycle_state varchar2(32767),
  freeform_tags json_element_t,
  defined_tags json_element_t,
  time_created timestamp with time zone,
  CONSTRUCTOR FUNCTION dbms_cloud_oci_generic_artifacts_content_generic_artifact_t
    RETURN SELF AS RESULT,
  CONSTRUCTOR FUNCTION dbms_cloud_oci_generic_artifacts_content_generic_artifact_t (
    id varchar2,
    display_name varchar2,
    compartment_id varchar2,
    repository_id varchar2,
    artifact_path varchar2,
    version varchar2,
    sha256 varchar2,
    size_in_bytes number,
    lifecycle_state varchar2,
    freeform_tags json_element_t,
    defined_tags json_element_t,
    time_created timestamp with time zone
  ) RETURN SELF AS RESULT
) NOT PERSISTABLE;

Fields

Field Description

id

(required) The OCID of the artifact. Example: `ocid1.genericartifact.oc1..exampleuniqueID`

display_name

(required) 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`

compartment_id

(required) The OCID of the repository's compartment.

repository_id

(required) The OCID of the repository.

artifact_path

(required) 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`

version

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

sha256

(required) 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.

size_in_bytes

(required) The size of the artifact in bytes.

lifecycle_state

(required) The current state of the artifact.

Allowed values are: 'AVAILABLE', 'DELETING', 'DELETED'

freeform_tags

(required) 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\"}`

defined_tags

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

time_created

(required) An RFC 3339 timestamp indicating when the repository was created.