ContainerImageFunctionSourceDetails¶
-
class
oci.functions.models.ContainerImageFunctionSourceDetails(**kwargs)¶ Bases:
oci.functions.models.function_source_details.FunctionSourceDetailsSource details of a container image based function.
Attributes
SOURCE_TYPE_ARCHIVEstr(object=’’) -> str SOURCE_TYPE_CONTAINER_IMAGEstr(object=’’) -> str SOURCE_TYPE_PRE_BUILT_FUNCTIONSstr(object=’’) -> str imageGets the image of this ContainerImageFunctionSourceDetails. image_digestGets the image_digest of this ContainerImageFunctionSourceDetails. source_type[Required] Gets the source_type of this FunctionSourceDetails. Methods
__init__(**kwargs)Initializes a new ContainerImageFunctionSourceDetails 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 ContainerImageFunctionSourceDetails object with values from keyword arguments. The default value of the
source_typeattribute of this class isCONTAINER_IMAGEand 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 ContainerImageFunctionSourceDetails. Allowed values for this property are: “PRE_BUILT_FUNCTIONS”, “ARCHIVE”, “CONTAINER_IMAGE”
- image (str) – The value to assign to the image property of this ContainerImageFunctionSourceDetails.
- image_digest (str) – The value to assign to the image_digest property of this ContainerImageFunctionSourceDetails.
-
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.
-
image¶ Gets the image of this ContainerImageFunctionSourceDetails. The qualified name of the Docker image to use in the function, including the image tag. The image should be in the OCI Registry that is in the same region as the function itself. Example: phx.ocir.io/ten/functions/function:0.0.1
Returns: The image of this ContainerImageFunctionSourceDetails. Return type: str
-
image_digest¶ Gets the image_digest of this ContainerImageFunctionSourceDetails. The image digest for the version of the image that will be pulled when invoking this function. If no value is specified, the digest currently associated with the image in the OCI Registry will be used. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7
Returns: The image_digest of this ContainerImageFunctionSourceDetails. 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
-