EmbeddedInputDetails¶
-
class
oci.ai_anomaly_detection.models.
EmbeddedInputDetails
(**kwargs)¶ Bases:
oci.ai_anomaly_detection.models.input_details.InputDetails
The request body when byte data is provided in detect call, which is Base64 encoded. The default type of the data is CSV and can be JSON by setting the ‘contentType’.
Attributes
CONTENT_TYPE_CSV
A constant which can be used with the content_type property of a EmbeddedInputDetails. CONTENT_TYPE_JSON
A constant which can be used with the content_type property of a EmbeddedInputDetails. INPUT_TYPE_BASE64_ENCODED
str(object=’’) -> str INPUT_TYPE_INLINE
str(object=’’) -> str INPUT_TYPE_OBJECT_LIST
str(object=’’) -> str content
[Required] Gets the content of this EmbeddedInputDetails. content_type
[Required] Gets the content_type of this EmbeddedInputDetails. input_type
[Required] Gets the input_type of this InputDetails. Methods
__init__
(**kwargs)Initializes a new EmbeddedInputDetails 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. -
CONTENT_TYPE_CSV
= 'CSV'¶ A constant which can be used with the content_type property of a EmbeddedInputDetails. This constant has a value of “CSV”
-
CONTENT_TYPE_JSON
= 'JSON'¶ A constant which can be used with the content_type property of a EmbeddedInputDetails. This constant has a value of “JSON”
-
INPUT_TYPE_BASE64_ENCODED
= 'BASE64_ENCODED'¶
-
INPUT_TYPE_INLINE
= 'INLINE'¶
-
INPUT_TYPE_OBJECT_LIST
= 'OBJECT_LIST'¶
-
__init__
(**kwargs)¶ Initializes a new EmbeddedInputDetails object with values from keyword arguments. The default value of the
input_type
attribute of this class isBASE64_ENCODED
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - input_type (str) – The value to assign to the input_type property of this EmbeddedInputDetails. Allowed values for this property are: “INLINE”, “BASE64_ENCODED”, “OBJECT_LIST”
- content_type (str) – The value to assign to the content_type property of this EmbeddedInputDetails. Allowed values for this property are: “CSV”, “JSON”
- content (str) – The value to assign to the content property of this EmbeddedInputDetails.
-
content
¶ [Required] Gets the content of this EmbeddedInputDetails.
Returns: The content of this EmbeddedInputDetails. Return type: str
-
content_type
¶ [Required] Gets the content_type of this EmbeddedInputDetails. Allowed values for this property are: “CSV”, “JSON”
Returns: The content_type of this EmbeddedInputDetails. 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.
-
input_type
¶ [Required] Gets the input_type of this InputDetails. Type of request. This parameter is automatically populated by classes generated by the SDK. For raw curl requests, you must provide this field.
Allowed values for this property are: “INLINE”, “BASE64_ENCODED”, “OBJECT_LIST”
Returns: The input_type of this InputDetails. Return type: str
-