ObjectStorageSourceDetails¶
- class oci.data_labeling_service_dataplane.models.ObjectStorageSourceDetails(**kwargs)¶
Bases:
SourceDetailsObject Storage Source Details.
Attributes:
A constant which can be used with the source_type property of a SourceDetails.
Gets the length of this ObjectStorageSourceDetails.
Gets the offset of this ObjectStorageSourceDetails.
[Required] Gets the path of this ObjectStorageSourceDetails.
[Required] Gets the relative_path of this ObjectStorageSourceDetails.
[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'¶
A constant which can be used with the source_type property of a SourceDetails. This constant has a value of “OBJECT_STORAGE”
- __init__(**kwargs)¶
Initializes a new ObjectStorageSourceDetails object with values from keyword arguments. The default value of the
source_typeattribute of this class isOBJECT_STORAGEand 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.
- property 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
- property offset¶
Gets the offset of this ObjectStorageSourceDetails. The offset into the file containing the content.
- Returns
The offset of this ObjectStorageSourceDetails.
- Return type
float
- property 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
- property 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
- property 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