InvokeFunctionStep

class oci.disaster_recovery.models.InvokeFunctionStep(**kwargs)

Bases: oci.disaster_recovery.models.dr_plan_user_defined_step.DrPlanUserDefinedStep

Invoke Oracle function step details.

Attributes

STEP_TYPE_INVOKE_FUNCTION str(object=’’) -> str
STEP_TYPE_INVOKE_FUNCTION_PRECHECK str(object=’’) -> str
STEP_TYPE_RUN_LOCAL_SCRIPT str(object=’’) -> str
STEP_TYPE_RUN_LOCAL_SCRIPT_PRECHECK str(object=’’) -> str
STEP_TYPE_RUN_OBJECTSTORE_SCRIPT str(object=’’) -> str
STEP_TYPE_RUN_OBJECTSTORE_SCRIPT_PRECHECK str(object=’’) -> str
function_id [Required] Gets the function_id of this InvokeFunctionStep.
function_region [Required] Gets the function_region of this InvokeFunctionStep.
request_body Gets the request_body of this InvokeFunctionStep.
step_type [Required] Gets the step_type of this DrPlanUserDefinedStep.

Methods

__init__(**kwargs) Initializes a new InvokeFunctionStep 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.
STEP_TYPE_INVOKE_FUNCTION = 'INVOKE_FUNCTION'
STEP_TYPE_INVOKE_FUNCTION_PRECHECK = 'INVOKE_FUNCTION_PRECHECK'
STEP_TYPE_RUN_LOCAL_SCRIPT = 'RUN_LOCAL_SCRIPT'
STEP_TYPE_RUN_LOCAL_SCRIPT_PRECHECK = 'RUN_LOCAL_SCRIPT_PRECHECK'
STEP_TYPE_RUN_OBJECTSTORE_SCRIPT = 'RUN_OBJECTSTORE_SCRIPT'
STEP_TYPE_RUN_OBJECTSTORE_SCRIPT_PRECHECK = 'RUN_OBJECTSTORE_SCRIPT_PRECHECK'
__init__(**kwargs)

Initializes a new InvokeFunctionStep object with values from keyword arguments. The default value of the step_type attribute of this class is INVOKE_FUNCTION and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • step_type (str) – The value to assign to the step_type property of this InvokeFunctionStep. Allowed values for this property are: “RUN_OBJECTSTORE_SCRIPT_PRECHECK”, “RUN_LOCAL_SCRIPT_PRECHECK”, “INVOKE_FUNCTION_PRECHECK”, “RUN_OBJECTSTORE_SCRIPT”, “RUN_LOCAL_SCRIPT”, “INVOKE_FUNCTION”
  • function_id (str) – The value to assign to the function_id property of this InvokeFunctionStep.
  • function_region (str) – The value to assign to the function_region property of this InvokeFunctionStep.
  • request_body (str) – The value to assign to the request_body property of this InvokeFunctionStep.
function_id

[Required] Gets the function_id of this InvokeFunctionStep. The OCID of function to be invoked.

Example: ocid1.fnfunc.oc1..uniqueID

Returns:The function_id of this InvokeFunctionStep.
Return type:str
function_region

[Required] Gets the function_region of this InvokeFunctionStep. The region in which the function is deployed.

Example: us-ashburn-1

Returns:The function_region of this InvokeFunctionStep.
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.

request_body

Gets the request_body of this InvokeFunctionStep. The request body for the function.

Example: { “FnParam1”, “FnParam2” }

Returns:The request_body of this InvokeFunctionStep.
Return type:str
step_type

[Required] Gets the step_type of this DrPlanUserDefinedStep. The type of the user-defined step.

RUN_OBJECTSTORE_SCRIPT_PRECHECK - A step which performs a precheck on a script stored
in OCI object storage.
RUN_LOCAL_SCRIPT_PRECHECK - A step which performs a precheck on a script which resides
locally on a compute instance.
INVOKE_FUNCTION_PRECHECK - A step which performs a precheck on an OCI function.
See https://docs.oracle.com/en-us/iaas/Content/Functions/home.htm.

RUN_OBJECTSTORE_SCRIPT - A step which runs a script stored in OCI object storage.

RUN_LOCAL_SCRIPT - A step which runs a script that resides locally on a compute instance.

INVOKE_FUNCTION - A step which invokes an OCI function.
See https://docs.oracle.com/en-us/iaas/Content/Functions/home.htm.

Allowed values for this property are: “RUN_OBJECTSTORE_SCRIPT_PRECHECK”, “RUN_LOCAL_SCRIPT_PRECHECK”, “INVOKE_FUNCTION_PRECHECK”, “RUN_OBJECTSTORE_SCRIPT”, “RUN_LOCAL_SCRIPT”, “INVOKE_FUNCTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The step_type of this DrPlanUserDefinedStep.
Return type:str