DataFormat

class oci.data_connectivity.models.DataFormat(**kwargs)

Bases: object

The data format object.

Attributes

TYPE_AVRO A constant which can be used with the type property of a DataFormat.
TYPE_CSV A constant which can be used with the type property of a DataFormat.
TYPE_JSON A constant which can be used with the type property of a DataFormat.
TYPE_PARQUET A constant which can be used with the type property of a DataFormat.
compression_config Gets the compression_config of this DataFormat.
format_attribute Gets the format_attribute of this DataFormat.
type [Required] Gets the type of this DataFormat.

Methods

__init__(**kwargs) Initializes a new DataFormat object with values from keyword arguments.
TYPE_AVRO = 'AVRO'

A constant which can be used with the type property of a DataFormat. This constant has a value of “AVRO”

TYPE_CSV = 'CSV'

A constant which can be used with the type property of a DataFormat. This constant has a value of “CSV”

TYPE_JSON = 'JSON'

A constant which can be used with the type property of a DataFormat. This constant has a value of “JSON”

TYPE_PARQUET = 'PARQUET'

A constant which can be used with the type property of a DataFormat. This constant has a value of “PARQUET”

__init__(**kwargs)

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

Parameters:
  • format_attribute (oci.data_connectivity.models.AbstractFormatAttribute) – The value to assign to the format_attribute property of this DataFormat.
  • type (str) – The value to assign to the type property of this DataFormat. Allowed values for this property are: “JSON”, “CSV”, “PARQUET”, “AVRO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • compression_config (oci.data_connectivity.models.Compression) – The value to assign to the compression_config property of this DataFormat.
compression_config

Gets the compression_config of this DataFormat.

Returns:The compression_config of this DataFormat.
Return type:oci.data_connectivity.models.Compression
format_attribute

Gets the format_attribute of this DataFormat.

Returns:The format_attribute of this DataFormat.
Return type:oci.data_connectivity.models.AbstractFormatAttribute
type

[Required] Gets the type of this DataFormat. type

Allowed values for this property are: “JSON”, “CSV”, “PARQUET”, “AVRO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this DataFormat.
Return type:str