CreateArchiveFunctionSourceDetails

class oci.functions.models.CreateArchiveFunctionSourceDetails(**kwargs)

Bases: oci.functions.models.create_function_source_details.CreateFunctionSourceDetails

Source details for creating an archive‑based function.

Attributes

SOURCE_TYPE_ARCHIVE str(object=’’) -> str
SOURCE_TYPE_CONTAINER_IMAGE str(object=’’) -> str
SOURCE_TYPE_PRE_BUILT_FUNCTIONS str(object=’’) -> str
archive_source_details [Required] Gets the archive_source_details of this CreateArchiveFunctionSourceDetails.
handler Gets the handler of this CreateArchiveFunctionSourceDetails.
runtime_config [Required] Gets the runtime_config of this CreateArchiveFunctionSourceDetails.
source_type [Required] Gets the source_type of this CreateFunctionSourceDetails.

Methods

__init__(**kwargs) Initializes a new CreateArchiveFunctionSourceDetails 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_ARCHIVE = 'ARCHIVE'
SOURCE_TYPE_CONTAINER_IMAGE = 'CONTAINER_IMAGE'
SOURCE_TYPE_PRE_BUILT_FUNCTIONS = 'PRE_BUILT_FUNCTIONS'
__init__(**kwargs)

Initializes a new CreateArchiveFunctionSourceDetails object with values from keyword arguments. The default value of the source_type attribute of this class is ARCHIVE 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 CreateArchiveFunctionSourceDetails. Allowed values for this property are: “PRE_BUILT_FUNCTIONS”, “ARCHIVE”, “CONTAINER_IMAGE”
  • archive_source_details (oci.functions.models.CreateArchiveSourceDetails) – The value to assign to the archive_source_details property of this CreateArchiveFunctionSourceDetails.
  • handler (str) – The value to assign to the handler property of this CreateArchiveFunctionSourceDetails.
  • runtime_config (oci.functions.models.CreateRuntimeConfig) – The value to assign to the runtime_config property of this CreateArchiveFunctionSourceDetails.
archive_source_details

[Required] Gets the archive_source_details of this CreateArchiveFunctionSourceDetails.

Returns:The archive_source_details of this CreateArchiveFunctionSourceDetails.
Return type:oci.functions.models.CreateArchiveSourceDetails
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.

handler

Gets the handler of this CreateArchiveFunctionSourceDetails. The function handler that is executed when the function is invoked. The value of this field depends on the runtime used

Returns:The handler of this CreateArchiveFunctionSourceDetails.
Return type:str
runtime_config

[Required] Gets the runtime_config of this CreateArchiveFunctionSourceDetails.

Returns:The runtime_config of this CreateArchiveFunctionSourceDetails.
Return type:oci.functions.models.CreateRuntimeConfig
source_type

[Required] Gets the source_type of this CreateFunctionSourceDetails. Type of the Function Source. Possible values: CONTAINER_IMAGE, PBF and ARCHIVE.

Allowed values for this property are: “PRE_BUILT_FUNCTIONS”, “ARCHIVE”, “CONTAINER_IMAGE”

Returns:The source_type of this CreateFunctionSourceDetails.
Return type:str