ObjectStorageSourceDetails

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

Bases: oci.data_labeling_service_dataplane.models.source_details.SourceDetails

Object Storage Source Details.

Attributes

SOURCE_TYPE_OBJECT_STORAGE str(object=’’) -> str
length Gets the length of this ObjectStorageSourceDetails.
offset Gets the offset of this ObjectStorageSourceDetails.
path [Required] Gets the path of this ObjectStorageSourceDetails.
relative_path [Required] Gets the relative_path of this ObjectStorageSourceDetails.
source_type [Required] Gets the source_type of this SourceDetails.

Methods

__init__(**kwargs) Initializes a new ObjectStorageSourceDetails 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_TYPE_OBJECT_STORAGE = 'OBJECT_STORAGE'
__init__(**kwargs)

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

Parameters:
  • source_type (str) – The value to assign to the source_type property of this ObjectStorageSourceDetails. Allowed values for this property are: “OBJECT_STORAGE”
  • relative_path (str) – The value to assign to the relative_path property of this ObjectStorageSourceDetails.
  • path (str) – The value to assign to the path property of this ObjectStorageSourceDetails.
  • offset (float) – The value to assign to the offset property of this ObjectStorageSourceDetails.
  • length (float) – The value to assign to the length property of this ObjectStorageSourceDetails.
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.

length

Gets the length of this ObjectStorageSourceDetails. The length from the offset into the file containing the content.

Returns:The length of this ObjectStorageSourceDetails.
Return type:float
offset

Gets the offset of this ObjectStorageSourceDetails. The offset into the file containing the content.

Returns:The offset of this ObjectStorageSourceDetails.
Return type:float
path

[Required] Gets the path of this ObjectStorageSourceDetails. The full path of the file this record belongs to.

Returns:The path of this ObjectStorageSourceDetails.
Return type:str
relative_path

[Required] Gets the relative_path of this ObjectStorageSourceDetails. The path relative to the prefix specified in the dataset source details (file name).

Returns:The relative_path of this ObjectStorageSourceDetails.
Return type:str
source_type

[Required] Gets the source_type of this SourceDetails. The type of data source. OBJECT_STORAGE - The source details for an object storage bucket.

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

Returns:The source_type of this SourceDetails.
Return type:str