SingleDockerArtifact

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

Bases: Artifact

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_FAILED

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.

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'

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 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.

property 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

property 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.

property 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

property 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

property 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

property 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

property tag

Gets the tag of this SingleDockerArtifact. image tag.

Returns

The tag of this SingleDockerArtifact.

Return type

str

property 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