ObjectStorageArchiveSourceDetails¶
- class oci.functions.models.ObjectStorageArchiveSourceDetails(**kwargs)¶
Bases:
ArchiveSourceDetailsThe details for the Archive source of the Function from Object Storage. This is used when the function code is stored in Object Storage. It is suitable for scenarios where the function code is uploaded as an archive file to a specific bucket and namespace
Attributes:
A constant which can be used with the archive_source_type property of a ArchiveSourceDetails.
A constant which can be used with the archive_source_type property of a ArchiveSourceDetails.
[Required] Gets the archive_source_type of this ArchiveSourceDetails.
[Required] Gets the bucket_name of this ObjectStorageArchiveSourceDetails.
[Required] Gets the namespace of this ObjectStorageArchiveSourceDetails.
[Required] Gets the object_name of this ObjectStorageArchiveSourceDetails.
Gets the object_version_id of this ObjectStorageArchiveSourceDetails.
Methods:
__init__(**kwargs)Initializes a new ObjectStorageArchiveSourceDetails 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.
- ARCHIVE_SOURCE_TYPE_DIRECT_ARCHIVE = 'DIRECT_ARCHIVE'¶
A constant which can be used with the archive_source_type property of a ArchiveSourceDetails. This constant has a value of “DIRECT_ARCHIVE”
- ARCHIVE_SOURCE_TYPE_OBJECT_STORAGE_ARCHIVE = 'OBJECT_STORAGE_ARCHIVE'¶
A constant which can be used with the archive_source_type property of a ArchiveSourceDetails. This constant has a value of “OBJECT_STORAGE_ARCHIVE”
- __init__(**kwargs)¶
Initializes a new ObjectStorageArchiveSourceDetails object with values from keyword arguments. The default value of the
archive_source_typeattribute of this class isOBJECT_STORAGE_ARCHIVEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
archive_source_type (str) – The value to assign to the archive_source_type property of this ObjectStorageArchiveSourceDetails. Allowed values for this property are: “OBJECT_STORAGE_ARCHIVE”, “DIRECT_ARCHIVE”
bucket_name (str) – The value to assign to the bucket_name property of this ObjectStorageArchiveSourceDetails.
namespace (str) – The value to assign to the namespace property of this ObjectStorageArchiveSourceDetails.
object_name (str) – The value to assign to the object_name property of this ObjectStorageArchiveSourceDetails.
object_version_id (str) – The value to assign to the object_version_id property of this ObjectStorageArchiveSourceDetails.
- property archive_source_type¶
[Required] Gets the archive_source_type of this ArchiveSourceDetails. Type of the Archive Source. Possible values: OBJECT_STORAGE_ARCHIVE and DIRECT_ARCHIVE.
Allowed values for this property are: “OBJECT_STORAGE_ARCHIVE”, “DIRECT_ARCHIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The archive_source_type of this ArchiveSourceDetails.
- Return type
str
- property bucket_name¶
[Required] Gets the bucket_name of this ObjectStorageArchiveSourceDetails. The name of the Object Storage bucket.
- Returns
The bucket_name of this ObjectStorageArchiveSourceDetails.
- 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¶
[Required] Gets the namespace of this ObjectStorageArchiveSourceDetails. The Object Storage namespace.
- Returns
The namespace of this ObjectStorageArchiveSourceDetails.
- Return type
str
- property object_name¶
[Required] Gets the object_name of this ObjectStorageArchiveSourceDetails. The name of the Object Storage object.
- Returns
The object_name of this ObjectStorageArchiveSourceDetails.
- Return type
str
- property object_version_id¶
Gets the object_version_id of this ObjectStorageArchiveSourceDetails. VersionId used to identify a particular version of the object. If not specified, the latest version of the object is used.
- Returns
The object_version_id of this ObjectStorageArchiveSourceDetails.
- Return type
str