ObjectStorageObject¶
- class oci.generative_ai.models.ObjectStorageObject(**kwargs)¶
Bases:
ModelDataSourceDetails about the object storage location.
Attributes:
A constant which can be used with the source_type property of a ModelDataSource.
A constant which can be used with the source_type property of a ModelDataSource.
[Required] Gets the bucket_name of this ObjectStorageObject.
[Required] Gets the namespace_name of this ObjectStorageObject.
[Required] Gets the prefix_name of this ObjectStorageObject.
Gets the region of this ObjectStorageObject.
Gets the source_type of this ModelDataSource.
Methods:
__init__(**kwargs)Initializes a new ObjectStorageObject 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_HUGGING_FACE_MODEL = 'HUGGING_FACE_MODEL'¶
A constant which can be used with the source_type property of a ModelDataSource. This constant has a value of “HUGGING_FACE_MODEL”
- SOURCE_TYPE_OBJECT_STORAGE_OBJECT = 'OBJECT_STORAGE_OBJECT'¶
A constant which can be used with the source_type property of a ModelDataSource. This constant has a value of “OBJECT_STORAGE_OBJECT”
- __init__(**kwargs)¶
Initializes a new ObjectStorageObject object with values from keyword arguments. The default value of the
source_typeattribute of this class isOBJECT_STORAGE_OBJECTand 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 ObjectStorageObject. Allowed values for this property are: “HUGGING_FACE_MODEL”, “OBJECT_STORAGE_OBJECT”
namespace_name (str) – The value to assign to the namespace_name property of this ObjectStorageObject.
bucket_name (str) – The value to assign to the bucket_name property of this ObjectStorageObject.
prefix_name (str) – The value to assign to the prefix_name property of this ObjectStorageObject.
region (str) – The value to assign to the region property of this ObjectStorageObject.
- property bucket_name¶
[Required] Gets the bucket_name of this ObjectStorageObject. The name of the Object Storage bucket.
- Returns
The bucket_name of this ObjectStorageObject.
- 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.
- property namespace_name¶
[Required] Gets the namespace_name of this ObjectStorageObject. The namespace of the Object Storage where the files are stored.
- Returns
The namespace_name of this ObjectStorageObject.
- Return type
str
- property prefix_name¶
[Required] Gets the prefix_name of this ObjectStorageObject. The prefix path (or folder) within the bucket where files are located.
- Returns
The prefix_name of this ObjectStorageObject.
- Return type
str
- property region¶
Gets the region of this ObjectStorageObject. The full canonical Oracle Cloud region identifier (e.g., “us-ashburn-1”) where the object storage bucket containing the files resides.
- Returns
The region of this ObjectStorageObject.
- Return type
str
- property source_type¶
Gets the source_type of this ModelDataSource. Specifies the source type for model import.
Allowed values for this property are: “HUGGING_FACE_MODEL”, “OBJECT_STORAGE_OBJECT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The source_type of this ModelDataSource.
- Return type
str