ObjectStoragePrefixLocation¶
- class oci.ai_language.models.ObjectStoragePrefixLocation(**kwargs)¶
Bases:
InputLocationProperties specific to object storage prefix location
Attributes:
A constant which can be used with the location_type property of a InputLocation.
A constant which can be used with the location_type property of a InputLocation.
[Required] Gets the bucket_name of this ObjectStoragePrefixLocation.
[Required] Gets the location_type of this InputLocation.
[Required] Gets the namespace_name of this ObjectStoragePrefixLocation.
Gets the prefix of this ObjectStoragePrefixLocation.
Methods:
__init__(**kwargs)Initializes a new ObjectStoragePrefixLocation 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.
- LOCATION_TYPE_OBJECT_STORAGE_FILE_LIST = 'OBJECT_STORAGE_FILE_LIST'¶
A constant which can be used with the location_type property of a InputLocation. This constant has a value of “OBJECT_STORAGE_FILE_LIST”
- LOCATION_TYPE_OBJECT_STORAGE_PREFIX = 'OBJECT_STORAGE_PREFIX'¶
A constant which can be used with the location_type property of a InputLocation. This constant has a value of “OBJECT_STORAGE_PREFIX”
- __init__(**kwargs)¶
Initializes a new ObjectStoragePrefixLocation object with values from keyword arguments. The default value of the
location_typeattribute of this class isOBJECT_STORAGE_PREFIXand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
location_type (str) – The value to assign to the location_type property of this ObjectStoragePrefixLocation. Allowed values for this property are: “OBJECT_STORAGE_PREFIX”, “OBJECT_STORAGE_FILE_LIST”
namespace_name (str) – The value to assign to the namespace_name property of this ObjectStoragePrefixLocation.
bucket_name (str) – The value to assign to the bucket_name property of this ObjectStoragePrefixLocation.
prefix (str) – The value to assign to the prefix property of this ObjectStoragePrefixLocation.
- property bucket_name¶
[Required] Gets the bucket_name of this ObjectStoragePrefixLocation. Object Storage bucket name.
- Returns
The bucket_name of this ObjectStoragePrefixLocation.
- 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 location_type¶
[Required] Gets the location_type of this InputLocation. locationType
Allowed values for this property are: “OBJECT_STORAGE_PREFIX”, “OBJECT_STORAGE_FILE_LIST”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The location_type of this InputLocation.
- Return type
str
- property namespace_name¶
[Required] Gets the namespace_name of this ObjectStoragePrefixLocation. Object Storage namespace name.
- Returns
The namespace_name of this ObjectStoragePrefixLocation.
- Return type
str
- property prefix¶
Gets the prefix of this ObjectStoragePrefixLocation. The prefix (directory) in an Object Storage bucket.
- Returns
The prefix of this ObjectStoragePrefixLocation.
- Return type
str