UpdateArchiveFunctionSourceDetails

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

Bases: UpdateFunctionSourceDetails

Source details for updating an archive‑based function.

Attributes:

SOURCE_TYPE_ARCHIVE

A constant which can be used with the source_type property of a UpdateFunctionSourceDetails.

SOURCE_TYPE_CONTAINER_IMAGE

A constant which can be used with the source_type property of a UpdateFunctionSourceDetails.

archive_source_details

Gets the archive_source_details of this UpdateArchiveFunctionSourceDetails.

handler

Gets the handler of this UpdateArchiveFunctionSourceDetails.

runtime_config

Gets the runtime_config of this UpdateArchiveFunctionSourceDetails.

source_type

[Required] Gets the source_type of this UpdateFunctionSourceDetails.

Methods:

__init__(**kwargs)

Initializes a new UpdateArchiveFunctionSourceDetails 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'

A constant which can be used with the source_type property of a UpdateFunctionSourceDetails. This constant has a value of “ARCHIVE”

SOURCE_TYPE_CONTAINER_IMAGE = 'CONTAINER_IMAGE'

A constant which can be used with the source_type property of a UpdateFunctionSourceDetails. This constant has a value of “CONTAINER_IMAGE”

__init__(**kwargs)

Initializes a new UpdateArchiveFunctionSourceDetails 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 UpdateArchiveFunctionSourceDetails. Allowed values for this property are: “ARCHIVE”, “CONTAINER_IMAGE”

  • archive_source_details (oci.functions.models.UpdateArchiveSourceDetails) – The value to assign to the archive_source_details property of this UpdateArchiveFunctionSourceDetails.

  • handler (str) – The value to assign to the handler property of this UpdateArchiveFunctionSourceDetails.

  • runtime_config (oci.functions.models.UpdateRuntimeConfig) – The value to assign to the runtime_config property of this UpdateArchiveFunctionSourceDetails.

property archive_source_details

Gets the archive_source_details of this UpdateArchiveFunctionSourceDetails.

Returns

The archive_source_details of this UpdateArchiveFunctionSourceDetails.

Return type

oci.functions.models.UpdateArchiveSourceDetails

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 handler

Gets the handler of this UpdateArchiveFunctionSourceDetails. 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 UpdateArchiveFunctionSourceDetails.

Return type

str

property runtime_config

Gets the runtime_config of this UpdateArchiveFunctionSourceDetails.

Returns

The runtime_config of this UpdateArchiveFunctionSourceDetails.

Return type

oci.functions.models.UpdateRuntimeConfig

property source_type

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

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

Returns

The source_type of this UpdateFunctionSourceDetails.

Return type

str