ObjectStorageDatasetSourceDetails

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

Bases: oci.data_labeling_service_dataplane.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 ObjectStorageDatasetSourceDetails.
namespace [Required] Gets the namespace of this ObjectStorageDatasetSourceDetails.
prefix Gets the prefix of this ObjectStorageDatasetSourceDetails.
source_type [Required] Gets the source_type of this DatasetSourceDetails.

Methods

__init__(**kwargs) Initializes a new ObjectStorageDatasetSourceDetails 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 ObjectStorageDatasetSourceDetails 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 ObjectStorageDatasetSourceDetails. Allowed values for this property are: “OBJECT_STORAGE”
  • namespace (str) – The value to assign to the namespace property of this ObjectStorageDatasetSourceDetails.
  • bucket (str) – The value to assign to the bucket property of this ObjectStorageDatasetSourceDetails.
  • prefix (str) – The value to assign to the prefix property of this ObjectStorageDatasetSourceDetails.
bucket

[Required] Gets the bucket of this ObjectStorageDatasetSourceDetails. The object storage bucket that contains the dataset data source

Returns:The bucket of this ObjectStorageDatasetSourceDetails.
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 ObjectStorageDatasetSourceDetails. Namespace of the bucket that contains the dataset data source

Returns:The namespace of this ObjectStorageDatasetSourceDetails.
Return type:str
prefix

Gets the prefix of this ObjectStorageDatasetSourceDetails. A common path prefix shared by the objects that make up the dataset.

Returns:The prefix of this ObjectStorageDatasetSourceDetails.
Return type:str
source_type

[Required] Gets the source_type of this DatasetSourceDetails. Source type. OBJECT_STORAGE allows the customer to describe where the dataset is in object storage.

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