Artifact¶
-
class
oci.generative_ai.models.Artifact(**kwargs)¶ Bases:
objectContainer/artifact configuration for the deployment.
Attributes
ARTIFACT_TYPE_SIMPLE_DOCKER_ARTIFACTA constant which can be used with the artifact_type property of a Artifact. STATUS_ACTIVEA constant which can be used with the status property of a Artifact. STATUS_FAILEDA constant which can be used with the status property of a Artifact. STATUS_INACTIVEA constant which can be used with the status property of a Artifact. STATUS_UPDATINGA constant which can be used with the status property of a Artifact. artifact_typeGets the artifact_type of this Artifact. hosted_deployment_idGets the hosted_deployment_id of this Artifact. idGets the id of this Artifact. is_vulnerability_scan_requiredGets the is_vulnerability_scan_required of this Artifact. statusGets the status of this Artifact. time_createdGets 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_FAILED= 'FAILED'¶ A constant which can be used with the status property of a Artifact. This constant has a value of “FAILED”
-
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.
- is_vulnerability_scan_required (bool) – The value to assign to the is_vulnerability_scan_required 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”, “FAILED”, ‘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
-
is_vulnerability_scan_required¶ Gets the is_vulnerability_scan_required of this Artifact. Optional flag that requires an OCI Vulnerability Scanning Service compliance report for this artifact before it can become active. When not provided, the value defaults to false and the artifact is not blocked on a scan result.
Returns: The is_vulnerability_scan_required of this Artifact. Return type: bool
-
status¶ Gets the status of this Artifact. The current status of the artifact.
Allowed values for this property are: “ACTIVE”, “INACTIVE”, “UPDATING”, “FAILED”, ‘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
-