CreateArchiveSourceDetails¶
-
class
oci.functions.models.CreateArchiveSourceDetails(**kwargs)¶ Bases:
objectThe details required to create an Archive-based function source. This mode is used when the function code is provided as an archive, either from Object Storage or directly uploaded by the API caller. It is suitable for scenarios where the function code is packaged as a single archive file.
Attributes
ARCHIVE_SOURCE_TYPE_DIRECT_ARCHIVEA constant which can be used with the archive_source_type property of a CreateArchiveSourceDetails. ARCHIVE_SOURCE_TYPE_OBJECT_STORAGE_ARCHIVEA constant which can be used with the archive_source_type property of a CreateArchiveSourceDetails. archive_source_type[Required] Gets the archive_source_type of this CreateArchiveSourceDetails. Methods
__init__(**kwargs)Initializes a new CreateArchiveSourceDetails 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 CreateArchiveSourceDetails. 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 CreateArchiveSourceDetails. This constant has a value of “OBJECT_STORAGE_ARCHIVE”
-
__init__(**kwargs)¶ Initializes a new CreateArchiveSourceDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 CreateArchiveSourceDetails. Allowed values for this property are: “OBJECT_STORAGE_ARCHIVE”, “DIRECT_ARCHIVE”
-
archive_source_type¶ [Required] Gets the archive_source_type of this CreateArchiveSourceDetails. Type of the Archive Source. Possible values: OBJECT_STORAGE_ARCHIVE and DIRECT_ARCHIVE.
Allowed values for this property are: “OBJECT_STORAGE_ARCHIVE”, “DIRECT_ARCHIVE”
Returns: The archive_source_type of this CreateArchiveSourceDetails. 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.
-