CreateObjectStorageSourceDetails¶
-
class
oci.data_labeling_service_dataplane.models.
CreateObjectStorageSourceDetails
(**kwargs)¶ Bases:
oci.data_labeling_service_dataplane.models.create_source_details.CreateSourceDetails
Object Storage Source Details.
Attributes
SOURCE_TYPE_OBJECT_STORAGE
str(object=’’) -> str length
Gets the length of this CreateObjectStorageSourceDetails. offset
Gets the offset of this CreateObjectStorageSourceDetails. relative_path
[Required] Gets the relative_path of this CreateObjectStorageSourceDetails. source_type
[Required] Gets the source_type of this CreateSourceDetails. Methods
__init__
(**kwargs)Initializes a new CreateObjectStorageSourceDetails 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 CreateObjectStorageSourceDetails object with values from keyword arguments. The default value of the
source_type
attribute of this class isOBJECT_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 CreateObjectStorageSourceDetails. Allowed values for this property are: “OBJECT_STORAGE”
- relative_path (str) – The value to assign to the relative_path property of this CreateObjectStorageSourceDetails.
- offset (float) – The value to assign to the offset property of this CreateObjectStorageSourceDetails.
- length (float) – The value to assign to the length property of this CreateObjectStorageSourceDetails.
-
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 CreateObjectStorageSourceDetails. The length from offset into the file containing the content.
Returns: The length of this CreateObjectStorageSourceDetails. Return type: float
-
offset
¶ Gets the offset of this CreateObjectStorageSourceDetails. The offset into the file containing the content.
Returns: The offset of this CreateObjectStorageSourceDetails. Return type: float
-
relative_path
¶ [Required] Gets the relative_path of this CreateObjectStorageSourceDetails. The path relative to the prefix specified in the dataset source details (file name).
Returns: The relative_path of this CreateObjectStorageSourceDetails. Return type: str
-
source_type
¶ [Required] Gets the source_type of this CreateSourceDetails. The type of data source. OBJECT_STORAGE - The source details for an object storage bucket.
Allowed values for this property are: “OBJECT_STORAGE”
Returns: The source_type of this CreateSourceDetails. Return type: str
-