InlineImageDetails

class oci.ai_vision.models.InlineImageDetails(**kwargs)

Bases: oci.ai_vision.models.image_details.ImageDetails

The image incorporated in the request payload.

Attributes

SOURCE_INLINE str(object=’’) -> str
SOURCE_OBJECT_STORAGE str(object=’’) -> str
data [Required] Gets the data of this InlineImageDetails.
source [Required] Gets the source of this ImageDetails.

Methods

__init__(**kwargs) Initializes a new InlineImageDetails 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.
SOURCE_INLINE = 'INLINE'
SOURCE_OBJECT_STORAGE = 'OBJECT_STORAGE'
__init__(**kwargs)

Initializes a new InlineImageDetails object with values from keyword arguments. The default value of the source attribute of this class is INLINE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • source (str) – The value to assign to the source property of this InlineImageDetails. Allowed values for this property are: “INLINE”, “OBJECT_STORAGE”
  • data (str) – The value to assign to the data property of this InlineImageDetails.
data

[Required] Gets the data of this InlineImageDetails. Raw image data.

Returns:The data of this InlineImageDetails.
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.

source

[Required] Gets the source of this ImageDetails. The location of the image data. The allowed values are: - INLINE: The data is included directly in the request payload. - OBJECT_STORAGE: The image is in OCI Object Storage.

Allowed values for this property are: “INLINE”, “OBJECT_STORAGE”

Returns:The source of this ImageDetails.
Return type:str