UpdateFunctionDetails

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

Bases: object

Updates attributes of a function.

__init__(**kwargs)

Initializes a new UpdateFunctionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • image (str) -- The value to assign to the image property of this UpdateFunctionDetails.
  • image_digest (str) -- The value to assign to the image_digest property of this UpdateFunctionDetails.
  • memory_in_mbs (int) -- The value to assign to the memory_in_mbs property of this UpdateFunctionDetails.
  • config (dict(str, str)) -- The value to assign to the config property of this UpdateFunctionDetails.
  • timeout_in_seconds (int) -- The value to assign to the timeout_in_seconds property of this UpdateFunctionDetails.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this UpdateFunctionDetails.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this UpdateFunctionDetails.
config

Gets the config of this UpdateFunctionDetails. Function configuration. These values are passed on to the function as environment variables, this overrides application configuration values. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters.

Example: {"MY_FUNCTION_CONFIG": "ConfVal"}

The maximum size for all configuration keys and values is limited to 4KB. This is measured as the sum of octets necessary to represent each key and value in UTF-8.

Returns:The config of this UpdateFunctionDetails.
Return type:dict(str, str)
defined_tags

Gets the defined_tags of this UpdateFunctionDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {"Operations": {"CostCenter": "42"}}

Returns:The defined_tags of this UpdateFunctionDetails.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this UpdateFunctionDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Returns:The freeform_tags of this UpdateFunctionDetails.
Return type:dict(str, str)
image

Gets the image of this UpdateFunctionDetails. 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. If an image is specified but no value for imageDigest is provided, the digest currently associated with the image tag in the OCI Registry will be used. Example: phx.ocir.io/ten/functions/function:0.0.1

Returns:The image of this UpdateFunctionDetails.
Return type:str
image_digest

Gets the image_digest of this UpdateFunctionDetails. The image digest for the version of the image that will be pulled when invoking this function. Example: sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7

Returns:The image_digest of this UpdateFunctionDetails.
Return type:str
memory_in_mbs

Gets the memory_in_mbs of this UpdateFunctionDetails. Maximum usable memory for the function (MiB).

Returns:The memory_in_mbs of this UpdateFunctionDetails.
Return type:int
timeout_in_seconds

Gets the timeout_in_seconds of this UpdateFunctionDetails. Timeout for executions of the function. Value in seconds.

Returns:The timeout_in_seconds of this UpdateFunctionDetails.
Return type:int