ObjectStorageObject

class oci.generative_ai.models.ObjectStorageObject(**kwargs)

Bases: oci.generative_ai.models.model_data_source.ModelDataSource

Details about the object storage location.

Attributes

SOURCE_TYPE_HUGGING_FACE_MODEL str(object=’’) -> str
SOURCE_TYPE_OBJECT_STORAGE_OBJECT str(object=’’) -> str
bucket_name [Required] Gets the bucket_name of this ObjectStorageObject.
namespace_name [Required] Gets the namespace_name of this ObjectStorageObject.
prefix_name [Required] Gets the prefix_name of this ObjectStorageObject.
region Gets the region of this ObjectStorageObject.
source_type 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'
SOURCE_TYPE_OBJECT_STORAGE_OBJECT = 'OBJECT_STORAGE_OBJECT'
__init__(**kwargs)

Initializes a new ObjectStorageObject object with values from keyword arguments. The default value of the source_type attribute of this class is OBJECT_STORAGE_OBJECT 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 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.
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.

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
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
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
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