RecordMetadata

class oci.data_labeling_service_dataplane.models.RecordMetadata(**kwargs)

Bases: object

Collection of record’s metadata. This can be, for example, the height, width or depth of image for an image record.

Attributes

RECORD_TYPE_DOCUMENT_METADATA A constant which can be used with the record_type property of a RecordMetadata.
RECORD_TYPE_IMAGE_METADATA A constant which can be used with the record_type property of a RecordMetadata.
RECORD_TYPE_TEXT_METADATA A constant which can be used with the record_type property of a RecordMetadata.
record_type Gets the record_type of this RecordMetadata.

Methods

__init__(**kwargs) Initializes a new RecordMetadata 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.
RECORD_TYPE_DOCUMENT_METADATA = 'DOCUMENT_METADATA'

A constant which can be used with the record_type property of a RecordMetadata. This constant has a value of “DOCUMENT_METADATA”

RECORD_TYPE_IMAGE_METADATA = 'IMAGE_METADATA'

A constant which can be used with the record_type property of a RecordMetadata. This constant has a value of “IMAGE_METADATA”

RECORD_TYPE_TEXT_METADATA = 'TEXT_METADATA'

A constant which can be used with the record_type property of a RecordMetadata. This constant has a value of “TEXT_METADATA”

__init__(**kwargs)

Initializes a new RecordMetadata object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:record_type (str) – The value to assign to the record_type property of this RecordMetadata. Allowed values for this property are: “IMAGE_METADATA”, “TEXT_METADATA”, “DOCUMENT_METADATA”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
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.

record_type

Gets the record_type of this RecordMetadata. The record type based on dataset format details. IMAGE_METADATA - Collection of metadata related to image record. TEXT_METADATA - Collection of metadata related to text record. DOCUMENT_METADATA - Collection of metadata related to document record.

Allowed values for this property are: “IMAGE_METADATA”, “TEXT_METADATA”, “DOCUMENT_METADATA”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The record_type of this RecordMetadata.
Return type:str