{
   "components": {
     "comp-automl-video-training-job": {
       "executorLabel": "exec-automl-video-training-job",
       "inputDefinitions": {
         "artifacts": {
           "dataset": {
             "artifactType": {
               "schemaTitle": "google.VertexDataset",
               "schemaVersion": "0.0.1"
             }
           }
         },
         "parameters": {
           "display_name": {
             "parameterType": "STRING"
           },
           "labels": {
             "defaultValue": {},
             "isOptional": true,
             "parameterType": "STRUCT"
           },
           "location": {
             "defaultValue": "us-central1",
             "isOptional": true,
             "parameterType": "STRING"
           },
           "model_display_name": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "model_encryption_spec_key_name": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "model_labels": {
             "isOptional": true,
             "parameterType": "STRUCT"
           },
           "model_type": {
             "defaultValue": "CLOUD",
             "isOptional": true,
             "parameterType": "STRING"
           },
           "prediction_type": {
             "defaultValue": "classification",
             "isOptional": true,
             "parameterType": "STRING"
           },
           "project": {
             "parameterType": "STRING"
           },
           "test_fraction_split": {
             "isOptional": true,
             "parameterType": "NUMBER_DOUBLE"
           },
           "training_encryption_spec_key_name": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "training_fraction_split": {
             "isOptional": true,
             "parameterType": "NUMBER_DOUBLE"
           }
         }
       },
       "outputDefinitions": {
         "artifacts": {
           "model": {
             "artifactType": {
               "schemaTitle": "google.VertexModel",
               "schemaVersion": "0.0.1"
             }
           }
         }
       }
     },
     "comp-video-dataset-create": {
       "executorLabel": "exec-video-dataset-create",
       "inputDefinitions": {
         "parameters": {
           "data_item_labels": {
             "defaultValue": {},
             "isOptional": true,
             "parameterType": "STRUCT"
           },
           "display_name": {
             "parameterType": "STRING"
           },
           "encryption_spec_key_name": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "gcs_source": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "import_schema_uri": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "labels": {
             "defaultValue": {},
             "isOptional": true,
             "parameterType": "STRUCT"
           },
           "location": {
             "defaultValue": "us-central1",
             "isOptional": true,
             "parameterType": "STRING"
           },
           "project": {
             "parameterType": "STRING"
           }
         }
       },
       "outputDefinitions": {
         "artifacts": {
           "dataset": {
             "artifactType": {
               "schemaTitle": "google.VertexDataset",
               "schemaVersion": "0.0.1"
             }
           }
         }
       }
     },
     "comp-video-dataset-export": {
       "executorLabel": "exec-video-dataset-export",
       "inputDefinitions": {
         "artifacts": {
           "dataset": {
             "artifactType": {
               "schemaTitle": "google.VertexDataset",
               "schemaVersion": "0.0.1"
             }
           }
         },
         "parameters": {
           "location": {
             "defaultValue": "us-central1",
             "isOptional": true,
             "parameterType": "STRING"
           },
           "output_dir": {
             "parameterType": "STRING"
           },
           "project": {
             "parameterType": "STRING"
           }
         }
       },
       "outputDefinitions": {
         "artifacts": {
           "exported_dataset": {
             "artifactType": {
               "schemaTitle": "google.VertexDataset",
               "schemaVersion": "0.0.1"
             }
           }
         }
       }
     },
     "comp-video-dataset-import": {
       "executorLabel": "exec-video-dataset-import",
       "inputDefinitions": {
         "artifacts": {
           "dataset": {
             "artifactType": {
               "schemaTitle": "google.VertexDataset",
               "schemaVersion": "0.0.1"
             }
           }
         },
         "parameters": {
           "data_item_labels": {
             "defaultValue": {},
             "isOptional": true,
             "parameterType": "STRUCT"
           },
           "gcs_source": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "import_schema_uri": {
             "isOptional": true,
             "parameterType": "STRING"
           },
           "location": {
             "defaultValue": "us-central1",
             "isOptional": true,
             "parameterType": "STRING"
           },
           "project": {
             "parameterType": "STRING"
           }
         }
       },
       "outputDefinitions": {
         "artifacts": {
           "dataset": {
             "artifactType": {
               "schemaTitle": "google.VertexDataset",
               "schemaVersion": "0.0.1"
             }
           }
         }
       }
     }
   },
   "deploymentSpec": {
     "executors": {
       "exec-automl-video-training-job": {
         "container": {
           "args": [
             "--init.project",
             "{{$.inputs.parameters['project']}}",
             "--init.location",
             "{{$.inputs.parameters['location']}}",
             "--init.display_name",
             "{{$.inputs.parameters['display_name']}}",
             "--init.prediction_type",
             "{{$.inputs.parameters['prediction_type']}}",
             "--init.labels",
             "{{$.inputs.parameters['labels']}}",
             "--init.model_type",
             "{{$.inputs.parameters['model_type']}}",
             "--method.dataset",
             "{{$.inputs.artifacts['dataset'].metadata['resourceName']}}",
             "{\"IfPresent\": {\"InputName\": \"training_encryption_spec_key_name\", \"Then\": [\"--init.training_encryption_spec_key_name\", \"{{$.inputs.parameters['training_encryption_spec_key_name']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"model_encryption_spec_key_name\", \"Then\": [\"--init.model_encryption_spec_key_name\", \"{{$.inputs.parameters['model_encryption_spec_key_name']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"model_display_name\", \"Then\": [\"--method.model_display_name\", \"{{$.inputs.parameters['model_display_name']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"training_fraction_split\", \"Then\": [\"--method.training_fraction_split\", \"{{$.inputs.parameters['training_fraction_split']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"test_fraction_split\", \"Then\": [\"--method.test_fraction_split\", \"{{$.inputs.parameters['test_fraction_split']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"model_labels\", \"Then\": [\"--method.model_labels\", \"{{$.inputs.parameters['model_labels']}}\"]}}",
             "--executor_input",
             "{{$}}",
             "--resource_name_output_artifact_uri",
             "{{$.outputs.artifacts['model'].uri}}"
           ],
           "command": [
             "python3",
             "-m",
             "google_cloud_pipeline_components.container.aiplatform.remote_runner",
             "--cls_name",
             "AutoMLVideoTrainingJob",
             "--method_name",
             "run"
           ],
           "image": "gcr.io/ml-pipeline/google-cloud-pipeline-components:2.0.0b1"
         }
       },
       "exec-video-dataset-create": {
         "container": {
           "args": [
             "--method.project",
             "{{$.inputs.parameters['project']}}",
             "--method.location",
             "{{$.inputs.parameters['location']}}",
             "--method.display_name",
             "{{$.inputs.parameters['display_name']}}",
             "--method.data_item_labels",
             "{{$.inputs.parameters['data_item_labels']}}",
             "{\"IfPresent\": {\"InputName\": \"gcs_source\", \"Then\": [\"--method.gcs_source\", \"{{$.inputs.parameters['gcs_source']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"import_schema_uri\", \"Then\": [\"--method.import_schema_uri\", \"{{$.inputs.parameters['import_schema_uri']}}\"]}}",
             "--method.labels",
             "{{$.inputs.parameters['labels']}}",
             "{\"IfPresent\": {\"InputName\": \"encryption_spec_key_name\", \"Then\": [\"--method.encryption_spec_key_name\", \"{{$.inputs.parameters['encryption_spec_key_name']}}\"]}}",
             "--executor_input",
             "{{$}}",
             "--resource_name_output_artifact_uri",
             "{{$.outputs.artifacts['dataset'].uri}}"
           ],
           "command": [
             "python3",
             "-m",
             "google_cloud_pipeline_components.container.aiplatform.remote_runner",
             "--cls_name",
             "VideoDataset",
             "--method_name",
             "create"
           ],
           "image": "gcr.io/ml-pipeline/google-cloud-pipeline-components:2.0.0b1"
         }
       },
       "exec-video-dataset-export": {
         "container": {
           "args": [
             "--init.dataset_name",
             "{{$.inputs.artifacts['dataset'].metadata['resourceName']}}",
             "--init.project",
             "{{$.inputs.parameters['project']}}",
             "--init.location",
             "{{$.inputs.parameters['location']}}",
             "--method.output_dir",
             "{{$.inputs.parameters['output_dir']}}",
             "--executor_input",
             "{{$}}",
             "--resource_name_output_artifact_uri",
             "{{$.outputs.artifacts['exported_dataset'].uri}}"
           ],
           "command": [
             "python3",
             "-m",
             "google_cloud_pipeline_components.container.aiplatform.remote_runner",
             "--cls_name",
             "VideoDataset",
             "--method_name",
             "export_data"
           ],
           "image": "gcr.io/ml-pipeline/google-cloud-pipeline-components:2.0.0b1"
         }
       },
       "exec-video-dataset-import": {
         "container": {
           "args": [
             "--init.project",
             "{{$.inputs.parameters['project']}}",
             "--init.location",
             "{{$.inputs.parameters['location']}}",
             "--init.dataset_name",
             "{{$.inputs.artifacts['dataset'].metadata['resourceName']}}",
             "--method.data_item_labels",
             "{{$.inputs.parameters['data_item_labels']}}",
             "{\"IfPresent\": {\"InputName\": \"gcs_source\", \"Then\": [\"--method.gcs_source\", \"{{$.inputs.parameters['gcs_source']}}\"]}}",
             "{\"IfPresent\": {\"InputName\": \"import_schema_uri\", \"Then\": [\"--method.import_schema_uri\", \"{{$.inputs.parameters['import_schema_uri']}}\"]}}",
             "--executor_input",
             "{{$}}",
             "--resource_name_output_artifact_uri",
             "{{$.outputs.artifacts['dataset'].uri}}"
           ],
           "command": [
             "python3",
             "-m",
             "google_cloud_pipeline_components.container.aiplatform.remote_runner",
             "--cls_name",
             "VideoDataset",
             "--method_name",
             "import_data"
           ],
           "image": "gcr.io/ml-pipeline/google-cloud-pipeline-components:2.0.0b1"
         }
       }
     }
   },
   "pipelineInfo": {
     "name": "training-test"
   },
   "root": {
     "dag": {
       "tasks": {
         "automl-video-training-job": {
           "cachingOptions": {
             "enableCache": true
           },
           "componentRef": {
             "name": "comp-automl-video-training-job"
           },
           "dependentTasks": [
             "video-dataset-create"
           ],
           "inputs": {
             "artifacts": {
               "dataset": {
                 "taskOutputArtifact": {
                   "outputArtifactKey": "dataset",
                   "producerTask": "video-dataset-create"
                 }
               }
             },
             "parameters": {
               "display_name": {
                 "runtimeValue": {
                   "constant": "test_display_name"
                 }
               },
               "model_display_name": {
                 "runtimeValue": {
                   "constant": "test_model_display_name"
                 }
               },
               "model_type": {
                 "runtimeValue": {
                   "constant": "CLOUD"
                 }
               },
               "prediction_type": {
                 "runtimeValue": {
                   "constant": "classification"
                 }
               },
               "project": {
                 "runtimeValue": {
                   "constant": "test_project"
                 }
               },
               "test_fraction_split": {
                 "runtimeValue": {
                   "constant": 0.2
                 }
               },
               "training_fraction_split": {
                 "runtimeValue": {
                   "constant": 0.6
                 }
               }
             }
           },
           "taskInfo": {
             "name": "automl-video-training-job"
           }
         },
         "video-dataset-create": {
           "cachingOptions": {
             "enableCache": true
           },
           "componentRef": {
             "name": "comp-video-dataset-create"
           },
           "inputs": {
             "parameters": {
               "display_name": {
                 "runtimeValue": {
                   "constant": "test_display_name"
                 }
               },
               "gcs_source": {
                 "runtimeValue": {
                   "constant": "gs://test_gcs_source"
                 }
               },
               "import_schema_uri": {
                 "runtimeValue": {
                   "constant": "gs://google-cloud-aiplatform/schema/dataset/ioformat/video_classification_io_format_1.0.0.yaml"
                 }
               },
               "project": {
                 "runtimeValue": {
                   "constant": "test_project"
                 }
               }
             }
           },
           "taskInfo": {
             "name": "video-dataset-create"
           }
         },
         "video-dataset-export": {
           "cachingOptions": {
             "enableCache": true
           },
           "componentRef": {
             "name": "comp-video-dataset-export"
           },
           "dependentTasks": [
             "video-dataset-create"
           ],
           "inputs": {
             "artifacts": {
               "dataset": {
                 "taskOutputArtifact": {
                   "outputArtifactKey": "dataset",
                   "producerTask": "video-dataset-create"
                 }
               }
             },
             "parameters": {
               "output_dir": {
                 "runtimeValue": {
                   "constant": "gs://test_gcs_output_dir"
                 }
               },
               "project": {
                 "runtimeValue": {
                   "constant": "test_project"
                 }
               }
             }
           },
           "taskInfo": {
             "name": "video-dataset-export"
           }
         },
         "video-dataset-import": {
           "cachingOptions": {
             "enableCache": true
           },
           "componentRef": {
             "name": "comp-video-dataset-import"
           },
           "dependentTasks": [
             "video-dataset-create"
           ],
           "inputs": {
             "artifacts": {
               "dataset": {
                 "taskOutputArtifact": {
                   "outputArtifactKey": "dataset",
                   "producerTask": "video-dataset-create"
                 }
               }
             },
             "parameters": {
               "gcs_source": {
                 "runtimeValue": {
                   "constant": "gs://test_gcs_source"
                 }
               },
               "import_schema_uri": {
                 "runtimeValue": {
                   "constant": "gs://google-cloud-aiplatform/schema/dataset/ioformat/video_classification_io_format_1.0.0.yaml"
                 }
               },
               "project": {
                 "runtimeValue": {
                   "constant": "test_project"
                 }
               }
             }
           },
           "taskInfo": {
             "name": "video-dataset-import"
           }
         }
       }
     }
   },
   "schemaVersion": "2.1.0"
 }