FailureDetails

class oci.resource_manager.models.FailureDetails(**kwargs)

Bases: object

FailureDetails model.

CODE_INTERNAL_SERVICE_ERROR = 'INTERNAL_SERVICE_ERROR'

A constant which can be used with the code property of a FailureDetails. This constant has a value of "INTERNAL_SERVICE_ERROR"

CODE_INVALID_WORKING_DIRECTORY = 'INVALID_WORKING_DIRECTORY'

A constant which can be used with the code property of a FailureDetails. This constant has a value of "INVALID_WORKING_DIRECTORY"

CODE_JOB_TIMEOUT = 'JOB_TIMEOUT'

A constant which can be used with the code property of a FailureDetails. This constant has a value of "JOB_TIMEOUT"

CODE_TERRAFORM_CONFIG_UNZIP_FAILED = 'TERRAFORM_CONFIG_UNZIP_FAILED'

A constant which can be used with the code property of a FailureDetails. This constant has a value of "TERRAFORM_CONFIG_UNZIP_FAILED"

CODE_TERRAFORM_CONFIG_VIRUS_FOUND = 'TERRAFORM_CONFIG_VIRUS_FOUND'

A constant which can be used with the code property of a FailureDetails. This constant has a value of "TERRAFORM_CONFIG_VIRUS_FOUND"

CODE_TERRAFORM_EXECUTION_ERROR = 'TERRAFORM_EXECUTION_ERROR'

A constant which can be used with the code property of a FailureDetails. This constant has a value of "TERRAFORM_EXECUTION_ERROR"

__init__(**kwargs)

Initializes a new FailureDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • code (str) -- The value to assign to the code property of this FailureDetails. Allowed values for this property are: "INTERNAL_SERVICE_ERROR", "TERRAFORM_EXECUTION_ERROR", "TERRAFORM_CONFIG_UNZIP_FAILED", "INVALID_WORKING_DIRECTORY", "JOB_TIMEOUT", "TERRAFORM_CONFIG_VIRUS_FOUND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • message (str) -- The value to assign to the message property of this FailureDetails.
code

[Required] Gets the code of this FailureDetails. Job failure reason.

Allowed values for this property are: "INTERNAL_SERVICE_ERROR", "TERRAFORM_EXECUTION_ERROR", "TERRAFORM_CONFIG_UNZIP_FAILED", "INVALID_WORKING_DIRECTORY", "JOB_TIMEOUT", "TERRAFORM_CONFIG_VIRUS_FOUND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.

Returns:The code of this FailureDetails.
Return type:str
message

[Required] Gets the message of this FailureDetails. A human-readable error string.

Returns:The message of this FailureDetails.
Return type:str