{
  "components":{
     "comp-notebooks-executor":{
        "executorLabel":"exec-notebooks-executor",
        "inputDefinitions":{
           "parameters":{
              "container_image_uri":{
                 "parameterType":"STRING"
              },
              "execution_id":{
                 "parameterType":"STRING"
              },
              "input_notebook_file":{
                 "parameterType":"STRING"
              },
              "location":{
                 "parameterType":"STRING"
              },
              "master_type":{
                 "parameterType":"STRING"
              },
              "output_notebook_folder":{
                 "parameterType":"STRING"
              },
              "parameters":{
                 "parameterType":"STRING"
              },
              "project":{
                 "parameterType":"STRING"
              }
           }
        },
        "outputDefinitions":{
           "parameters":{
              "error":{
                 "parameterType":"STRING"
              },
              "gcp_resources":{
                 "parameterType":"STRING"
              },
              "output_notebook_file":{
                 "parameterType":"STRING"
              },
              "state":{
                 "parameterType":"STRING"
              }
           }
        }
     }
  },
  "deploymentSpec":{
     "executors":{
        "exec-notebooks-executor":{
           "container":{
              "args":[
                 "--project",
                 "{{$.inputs.parameters['project']}}",
                 "--input_notebook_file",
                 "{{$.inputs.parameters['input_notebook_file']}}",
                 "--output_notebook_folder",
                 "{{$.inputs.parameters['output_notebook_folder']}}",
                 "--execution_id",
                 "{{$.inputs.parameters['execution_id']}}",
                 "--location",
                 "{{$.inputs.parameters['location']}}",
                 "--master_type",
                 "{{$.inputs.parameters['master_type']}}",
                 "--container_image_uri",
                 "{{$.inputs.parameters['container_image_uri']}}",
                 "--parameters",
                 "{{$.inputs.parameters['parameters']}}",
                 "----output-paths",
                 "{{$.outputs.parameters['state'].output_file}}",
                 "{{$.outputs.parameters['output_notebook_file'].output_file}}",
                 "{{$.outputs.parameters['gcp_resources'].output_file}}",
                 "{{$.outputs.parameters['error'].output_file}}"
              ],
              "command":[
                 "python3",
                 "-m",
                 "google_cloud_pipeline_components.container.experimental.notebooks.executor"
              ],
              "image":"gcr.io/ml-pipeline/google-cloud-pipeline-components:1.10.13"
           }
        }
     }
  },
  "pipelineInfo":{
     "name":"notebooks-executor-test"
  },
  "root":{
     "dag":{
        "tasks":{
           "notebooks-executor":{
              "cachingOptions":{
                 "enableCache":true
              },
              "componentRef":{
                 "name":"comp-notebooks-executor"
              },
              "inputs":{
                 "parameters":{
                    "container_image_uri":{
                       "runtimeValue":{
                          "constant":"gcr.io/deeplearning-platform-release/base-cpu"
                       }
                    },
                    "execution_id":{
                       "runtimeValue":{
                          "constant":"notebook_executor_test"
                       }
                    },
                    "input_notebook_file":{
                       "runtimeValue":{
                          "constant":"test_notebook_file"
                       }
                    },
                    "location":{
                       "runtimeValue":{
                          "constant":"us-central1"
                       }
                    },
                    "master_type":{
                       "runtimeValue":{
                          "constant":"n1-standard-4"
                       }
                    },
                    "output_notebook_folder":{
                       "runtimeValue":{
                          "constant":"test_output_folder"
                       }
                    },
                    "parameters":{
                       "runtimeValue":{
                          "constant":"PROJECT_ID=test_project,EXECUTION_ID=notebook_executor_test"
                       }
                    },
                    "project":{
                       "runtimeValue":{
                          "constant":"test_project"
                       }
                    }
                 }
              },
              "taskInfo":{
                 "name":"notebooks-executor"
              }
           }
        }
     }
  }
}