{
   "components":{
      "comp-endpoint-create":{
         "executorLabel":"exec-endpoint-create",
         "inputDefinitions":{
            "parameters":{
               "description":{
                  "parameterType":"STRING"
               },
               "display_name":{
                  "parameterType":"STRING"
               },
               "encryption_spec_key_name":{
                  "parameterType":"STRING"
               },
               "labels":{
                  "parameterType":"STRUCT"
               },
               "location":{
                  "parameterType":"STRING"
               },
               "network":{
                  "parameterType":"STRING"
               },
               "project":{
                  "parameterType":"STRING"
               }
            }
         },
         "outputDefinitions":{
            "artifacts":{
               "endpoint":{
                  "artifactType":{
                     "schemaTitle":"google.VertexEndpoint",
                     "schemaVersion":"0.0.1"
                  }
               }
            },
            "parameters":{
               "gcp_resources":{
                  "parameterType":"STRING"
               }
            }
         }
      },
      "comp-endpoint-delete":{
         "executorLabel":"exec-endpoint-delete",
         "inputDefinitions":{
            "artifacts":{
               "endpoint":{
                  "artifactType":{
                     "schemaTitle":"google.VertexEndpoint",
                     "schemaVersion":"0.0.1"
                  }
               }
            }
         },
         "outputDefinitions":{
            "parameters":{
               "gcp_resources":{
                  "parameterType":"STRING"
               }
            }
         }
      }
   },
   "deploymentSpec":{
      "executors":{
         "exec-endpoint-create":{
            "container":{
               "args":[
                  "--type",
                  "CreateEndpoint",
                  "--payload",
                  "{\"display_name\": \"{{$.inputs.parameters['display_name']}}\", \"description\": \"{{$.inputs.parameters['description']}}\", \"labels\": {{$.inputs.parameters['labels']}}, \"encryption_spec\": {\"kms_key_name\":\"{{$.inputs.parameters['encryption_spec_key_name']}}\"}, \"network\": \"{{$.inputs.parameters['network']}}\"}",
                  "--project",
                  "{{$.inputs.parameters['project']}}",
                  "--location",
                  "{{$.inputs.parameters['location']}}",
                  "--gcp_resources",
                  "{{$.outputs.parameters['gcp_resources'].output_file}}",
                  "--executor_input",
                  "{{$}}"
               ],
               "command":[
                  "python3",
                  "-u",
                  "-m",
                  "google_cloud_pipeline_components.container.v1.gcp_launcher.launcher"
               ],
               "image":"gcr.io/ml-pipeline/google-cloud-pipeline-components:1.10.13"
            }
         },
         "exec-endpoint-delete":{
            "container":{
               "args":[
                  "--type",
                  "DeleteEndpoint",
                  "--payload",
                  "{\"endpoint\": \"{{$.inputs.artifacts['endpoint'].metadata['resourceName']}}\"}",
                  "--project",
                  "",
                  "--location",
                  "",
                  "--gcp_resources",
                  "{{$.outputs.parameters['gcp_resources'].output_file}}"
               ],
               "command":[
                  "python3",
                  "-u",
                  "-m",
                  "google_cloud_pipeline_components.container.v1.gcp_launcher.launcher"
               ],
               "image":"gcr.io/ml-pipeline/google-cloud-pipeline-components:1.10.13"
            }
         }
      }
   },
   "pipelineInfo":{
      "name":"delete-endpoint-test"
   },
   "root":{
      "dag":{
         "tasks":{
            "endpoint-create":{
               "cachingOptions":{
                  "enableCache":true
               },
               "componentRef":{
                  "name":"comp-endpoint-create"
               },
               "inputs":{
                  "parameters":{
                     "description":{
                        "runtimeValue":{
                           "constant":"some description"
                        }
                     },
                     "display_name":{
                        "runtimeValue":{
                           "constant":"test_display_name"
                        }
                     },
                     "encryption_spec_key_name":{
                        "runtimeValue":{
                           "constant":"some encryption_spec_key_name"
                        }
                     },
                     "labels":{
                        "runtimeValue":{
                           "constant":{
                              "foo":"bar"
                           }
                        }
                     },
                     "location":{
                        "runtimeValue":{
                           "constant":"us-central1"
                        }
                     },
                     "network":{
                        "runtimeValue":{
                           "constant":"abc"
                        }
                     },
                     "project":{
                        "runtimeValue":{
                           "constant":"test_project"
                        }
                     }
                  }
               },
               "taskInfo":{
                  "name":"endpoint-create"
               }
            },
            "endpoint-delete":{
               "cachingOptions":{
                  "enableCache":true
               },
               "componentRef":{
                  "name":"comp-endpoint-delete"
               },
               "dependentTasks":[
                  "endpoint-create"
               ],
               "inputs":{
                  "artifacts":{
                     "endpoint":{
                        "taskOutputArtifact":{
                           "outputArtifactKey":"endpoint",
                           "producerTask":"endpoint-create"
                        }
                     }
                  }
               },
               "taskInfo":{
                  "name":"endpoint-delete"
               }
            }
         }
      }
   }
}
