api_helper.rb
# Returns the OCID of the named function in the named application
# in the named compartment
Returns the OCID of the named function in the named application
in the named compartment
Returns the OCID of the named function in the named application in the named compartment
def function(function_name:, app_name:, compartment_name:)
  functions(app_name: app_name, compartment_name: compartment_name)
    .select { |f| f.display_name == function_name }
    .fetch(0) { raise "Could not find function #{function_name}" }
end
def function ( function_name : , app_name : , compartment_name : ) functions ( app_name : app_name , compartment_name : compartment_name ) . select { | f | f . display_name == function_name } . fetch ( 0 ) { raise "Could not find function #{function_name}" } end
Returns the OCID of the named function in the named application
in the named compartment
Returns the OCID of the named function in the named application in the named compartment
function_name
app_name
compartment_name