Artifact

class oci.generative_ai.models.Artifact(**kwargs)

Bases: object

Container/artifact configuration for the deployment.

Attributes

ARTIFACT_TYPE_SIMPLE_DOCKER_ARTIFACT A constant which can be used with the artifact_type property of a Artifact.
STATUS_ACTIVE A constant which can be used with the status property of a Artifact.
STATUS_INACTIVE A constant which can be used with the status property of a Artifact.
STATUS_UPDATING A constant which can be used with the status property of a Artifact.
artifact_type Gets the artifact_type of this Artifact.
hosted_deployment_id Gets the hosted_deployment_id of this Artifact.
id Gets the id of this Artifact.
status Gets the status of this Artifact.
time_created Gets the time_created of this Artifact.

Methods

__init__(**kwargs) Initializes a new Artifact object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
ARTIFACT_TYPE_SIMPLE_DOCKER_ARTIFACT = 'SIMPLE_DOCKER_ARTIFACT'

A constant which can be used with the artifact_type property of a Artifact. This constant has a value of “SIMPLE_DOCKER_ARTIFACT”

STATUS_ACTIVE = 'ACTIVE'

A constant which can be used with the status property of a Artifact. This constant has a value of “ACTIVE”

STATUS_INACTIVE = 'INACTIVE'

A constant which can be used with the status property of a Artifact. This constant has a value of “INACTIVE”

STATUS_UPDATING = 'UPDATING'

A constant which can be used with the status property of a Artifact. This constant has a value of “UPDATING”

__init__(**kwargs)

Initializes a new Artifact object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 Artifact.
  • time_created (datetime) – The value to assign to the time_created property of this Artifact.
  • hosted_deployment_id (str) – The value to assign to the hosted_deployment_id property of this Artifact.
  • status (str) – The value to assign to the status property of this Artifact. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “UPDATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • artifact_type (str) – The value to assign to the artifact_type property of this Artifact. Allowed values for this property are: “SIMPLE_DOCKER_ARTIFACT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
artifact_type

Gets the artifact_type of this Artifact. The type of the artifact.

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

Returns:The artifact_type of this Artifact.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

hosted_deployment_id

Gets the hosted_deployment_id of this Artifact. The OCID of the application.

Returns:The hosted_deployment_id of this Artifact.
Return type:str
id

Gets the id of this Artifact. if put artifact to a table, the id is needed

Returns:The id of this Artifact.
Return type:str
status

Gets the status of this Artifact. The current status of the artifact.

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

Returns:The status of this Artifact.
Return type:str
time_created

Gets the time_created of this Artifact. The date and time the artifact was created.

Returns:The time_created of this Artifact.
Return type:datetime