ArchiveFunctionSourceDetails¶
-
class
oci.functions.models.ArchiveFunctionSourceDetails(**kwargs)¶ Bases:
oci.functions.models.function_source_details.FunctionSourceDetailsObject capturing fields required for creating an archive based function.
Attributes
SOURCE_TYPE_ARCHIVEstr(object=’’) -> str SOURCE_TYPE_CONTAINER_IMAGEstr(object=’’) -> str SOURCE_TYPE_PRE_BUILT_FUNCTIONSstr(object=’’) -> str archive_source_details[Required] Gets the archive_source_details of this ArchiveFunctionSourceDetails. handlerGets the handler of this ArchiveFunctionSourceDetails. runtime_config[Required] Gets the runtime_config of this ArchiveFunctionSourceDetails. source_code_sha256Gets the source_code_sha256 of this ArchiveFunctionSourceDetails. source_type[Required] Gets the source_type of this FunctionSourceDetails. Methods
__init__(**kwargs)Initializes a new ArchiveFunctionSourceDetails 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 ArchiveFunctionSourceDetails object with values from keyword arguments. The default value of the
source_typeattribute of this class isARCHIVEand 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 ArchiveFunctionSourceDetails. Allowed values for this property are: “PRE_BUILT_FUNCTIONS”, “ARCHIVE”, “CONTAINER_IMAGE”
- archive_source_details (oci.functions.models.ArchiveSourceDetails) – The value to assign to the archive_source_details property of this ArchiveFunctionSourceDetails.
- handler (str) – The value to assign to the handler property of this ArchiveFunctionSourceDetails.
- runtime_config (oci.functions.models.RuntimeConfig) – The value to assign to the runtime_config property of this ArchiveFunctionSourceDetails.
- source_code_sha256 (str) – The value to assign to the source_code_sha256 property of this ArchiveFunctionSourceDetails.
-
archive_source_details¶ [Required] Gets the archive_source_details of this ArchiveFunctionSourceDetails.
Returns: The archive_source_details of this ArchiveFunctionSourceDetails. Return type: oci.functions.models.ArchiveSourceDetails
-
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 ArchiveFunctionSourceDetails. 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 ArchiveFunctionSourceDetails. Return type: str
-
runtime_config¶ [Required] Gets the runtime_config of this ArchiveFunctionSourceDetails.
Returns: The runtime_config of this ArchiveFunctionSourceDetails. Return type: oci.functions.models.RuntimeConfig
-
source_code_sha256¶ Gets the source_code_sha256 of this ArchiveFunctionSourceDetails. The SHA256 hash of the function source code archive, base64-encoded.
Returns: The source_code_sha256 of this ArchiveFunctionSourceDetails. Return type: str
-
source_type¶ [Required] Gets the source_type of this FunctionSourceDetails. Type of the Function Source. Possible values: CONTAINER_IMAGE, PBF and ARCHIVE.
Allowed values for this property are: “PRE_BUILT_FUNCTIONS”, “ARCHIVE”, “CONTAINER_IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The source_type of this FunctionSourceDetails. Return type: str
-