ObjectStorageSourceDetails¶
-
class
oci.data_labeling_service.models.
ObjectStorageSourceDetails
(**kwargs)¶ Bases:
oci.data_labeling_service.models.dataset_source_details.DatasetSourceDetails
Specifies the dataset location in object storage. This requires that all records are in this bucket, and under this prefix. We do not support a dataset with objects in arbitrary locations across buckets or prefixes.
Attributes
SOURCE_TYPE_OBJECT_STORAGE
str(object=’’) -> str bucket
[Required] Gets the bucket of this ObjectStorageSourceDetails. namespace
[Required] Gets the namespace of this ObjectStorageSourceDetails. prefix
Gets the prefix of this ObjectStorageSourceDetails. source_type
[Required] Gets the source_type of this DatasetSourceDetails. 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 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 ObjectStorageSourceDetails. Allowed values for this property are: “OBJECT_STORAGE”
- namespace (str) – The value to assign to the namespace property of this ObjectStorageSourceDetails.
- bucket (str) – The value to assign to the bucket property of this ObjectStorageSourceDetails.
- prefix (str) – The value to assign to the prefix property of this ObjectStorageSourceDetails.
-
bucket
¶ [Required] Gets the bucket of this ObjectStorageSourceDetails. The object storage bucket that contains the dataset data source.
Returns: The bucket of this ObjectStorageSourceDetails. Return type: str
-
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.
-
namespace
¶ [Required] Gets the namespace of this ObjectStorageSourceDetails. The namespace of the bucket that contains the dataset data source.
Returns: The namespace of this ObjectStorageSourceDetails. Return type: str
-
prefix
¶ Gets the prefix of this ObjectStorageSourceDetails. A common path prefix shared by the objects that make up the dataset. Except for the CSV file type, records are not generated for the objects whose names exactly match with the prefix.
Returns: The prefix of this ObjectStorageSourceDetails. Return type: str
-
source_type
¶ [Required] Gets the source_type of this DatasetSourceDetails. The source type. OBJECT_STORAGE allows the user to describe where in object storage the dataset is.
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 DatasetSourceDetails. Return type: str
-