SingleDockerArtifact

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

Bases: oci.generative_ai.models.artifact.Artifact

Container/artifact configuration for the deployment.

Attributes

ARTIFACT_TYPE_SIMPLE_DOCKER_ARTIFACT str(object=’’) -> str
STATUS_ACTIVE str(object=’’) -> str
STATUS_FAILED str(object=’’) -> str
STATUS_INACTIVE str(object=’’) -> str
STATUS_UPDATING str(object=’’) -> str
artifact_type Gets the artifact_type of this Artifact.
container_uri Gets the container_uri of this SingleDockerArtifact.
hosted_deployment_id Gets the hosted_deployment_id of this Artifact.
id Gets the id of this Artifact.
is_vulnerability_scan_required Gets the is_vulnerability_scan_required of this Artifact.
status Gets the status of this Artifact.
tag Gets the tag of this SingleDockerArtifact.
time_created Gets the time_created of this Artifact.

Methods

__init__(**kwargs) Initializes a new SingleDockerArtifact 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'
STATUS_ACTIVE = 'ACTIVE'
STATUS_FAILED = 'FAILED'
STATUS_INACTIVE = 'INACTIVE'
STATUS_UPDATING = 'UPDATING'
__init__(**kwargs)

Initializes a new SingleDockerArtifact object with values from keyword arguments. The default value of the artifact_type attribute of this class is SIMPLE_DOCKER_ARTIFACT and it should not be changed. 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 SingleDockerArtifact.
  • time_created (datetime) – The value to assign to the time_created property of this SingleDockerArtifact.
  • hosted_deployment_id (str) – The value to assign to the hosted_deployment_id property of this SingleDockerArtifact.
  • is_vulnerability_scan_required (bool) – The value to assign to the is_vulnerability_scan_required property of this SingleDockerArtifact.
  • status (str) – The value to assign to the status property of this SingleDockerArtifact. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “UPDATING”, “FAILED”
  • artifact_type (str) – The value to assign to the artifact_type property of this SingleDockerArtifact. Allowed values for this property are: “SIMPLE_DOCKER_ARTIFACT”
  • container_uri (str) – The value to assign to the container_uri property of this SingleDockerArtifact.
  • tag (str) – The value to assign to the tag property of this SingleDockerArtifact.
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
container_uri

Gets the container_uri of this SingleDockerArtifact. image url.

Returns:The container_uri of this SingleDockerArtifact.
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
tag

Gets the tag of this SingleDockerArtifact. image tag.

Returns:The tag of this SingleDockerArtifact.
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