CreatePreBuiltFunctionSourceDetails¶
-
class
oci.functions.models.CreatePreBuiltFunctionSourceDetails(**kwargs)¶ Bases:
oci.functions.models.create_function_source_details.CreateFunctionSourceDetailsSource details for creating a function from a Pre‑Built Functions listing (PbfListing).
Attributes
SOURCE_TYPE_ARCHIVEstr(object=’’) -> str SOURCE_TYPE_CONTAINER_IMAGEstr(object=’’) -> str SOURCE_TYPE_PRE_BUILT_FUNCTIONSstr(object=’’) -> str pbf_listing_id[Required] Gets the pbf_listing_id of this CreatePreBuiltFunctionSourceDetails. source_type[Required] Gets the source_type of this CreateFunctionSourceDetails. Methods
__init__(**kwargs)Initializes a new CreatePreBuiltFunctionSourceDetails 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 CreatePreBuiltFunctionSourceDetails object with values from keyword arguments. The default value of the
source_typeattribute of this class isPRE_BUILT_FUNCTIONSand 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 CreatePreBuiltFunctionSourceDetails. Allowed values for this property are: “PRE_BUILT_FUNCTIONS”, “ARCHIVE”, “CONTAINER_IMAGE”
- pbf_listing_id (str) – The value to assign to the pbf_listing_id property of this CreatePreBuiltFunctionSourceDetails.
-
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.
-
pbf_listing_id¶ [Required] Gets the pbf_listing_id of this CreatePreBuiltFunctionSourceDetails. The OCID of the PbfListing this function is sourced from.
Returns: The pbf_listing_id of this CreatePreBuiltFunctionSourceDetails. Return type: str
-
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
-