DirectArchiveSourceDetails

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

Bases: ArchiveSourceDetails

The details for the Archive source of the Function from Direct Archive. This allows the API caller to directly upload the function code as a base64-encoded archive file. It is useful when the caller wants to provide the code inline during function creation.

Attributes:

ARCHIVE_SOURCE_TYPE_DIRECT_ARCHIVE

A constant which can be used with the archive_source_type property of a ArchiveSourceDetails.

ARCHIVE_SOURCE_TYPE_OBJECT_STORAGE_ARCHIVE

A constant which can be used with the archive_source_type property of a ArchiveSourceDetails.

archive_source_type

[Required] Gets the archive_source_type of this ArchiveSourceDetails.

Methods:

__init__(**kwargs)

Initializes a new DirectArchiveSourceDetails 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 DirectArchiveSourceDetails object with values from keyword arguments. The default value of the archive_source_type attribute of this class is DIRECT_ARCHIVE and 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 DirectArchiveSourceDetails. Allowed values for this property are: “OBJECT_STORAGE_ARCHIVE”, “DIRECT_ARCHIVE”

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

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.