{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sap-btp/json-schema/sap-btp-get-pipeline-schema.json",
  "title": "getPipeline",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sap-btp-document-grounding-openapi.yml#/components/schemas/getPipeline",
  "oneOf": [
    {
      "$ref": "#/$defs/MSSharePointPipelineGetResponse"
    },
    {
      "$ref": "#/$defs/S3PipelineGetResponse"
    },
    {
      "$ref": "#/$defs/SFTPPipelineGetResponse"
    },
    {
      "$ref": "#/$defs/SDMPipelineGetResponse"
    },
    {
      "$ref": "#/$defs/WorkZonePipelineGetResponse"
    },
    {
      "$ref": "#/$defs/ServiceNowPipelineGetResponse"
    },
    {
      "$ref": "#/$defs/GoogleDrivePipelineGetResponse"
    }
  ],
  "$defs": {
    "BasePipelineResponse": {
      "type": "object",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/MetaData"
        }
      }
    },
    "GoogleDriveConfigurationMinimal": {
      "type": "object",
      "required": [
        "googleDrive"
      ],
      "properties": {
        "googleDrive": {
          "$ref": "#/$defs/GoogleDriveResourceDetail"
        }
      },
      "additionalProperties": false
    },
    "GoogleDrivePipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "configuration"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "GoogleDrive"
              ]
            },
            "configuration": {
              "$ref": "#/$defs/GoogleDriveConfigurationMinimal"
            }
          }
        }
      ]
    },
    "GoogleDriveResourceDetail": {
      "type": "object",
      "properties": {
        "resourceType": {
          "type": "string",
          "enum": [
            "SHARED_FOLDER",
            "SHARED_DRIVE"
          ]
        },
        "resourceId": {
          "type": "string"
        },
        "includePaths": {
          "$ref": "#/$defs/IncludePathsArray"
        }
      },
      "additionalProperties": true
    },
    "IncludePathsArray": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "MSSharePointConfigurationGetResponse": {
      "type": "object",
      "required": [
        "destination",
        "sharePoint"
      ],
      "properties": {
        "destination": {
          "type": "string"
        },
        "sharePoint": {
          "$ref": "#/$defs/SharePointConfigGetResponse"
        }
      }
    },
    "MSSharePointPipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "configuration"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "MSSharePoint"
              ]
            },
            "configuration": {
              "$ref": "#/$defs/MSSharePointConfigurationGetResponse"
            }
          }
        }
      ]
    },
    "MetaData": {
      "type": "object",
      "properties": {
        "destination": {
          "type": "string"
        },
        "dataRepositoryMetadata": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1024,
                "nullable": false
              },
              "value": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1024,
                  "nullable": false
                },
                "nullable": false,
                "minItems": 1
              }
            },
            "required": [
              "key",
              "value"
            ]
          }
        }
      },
      "additionalProperties": true
    },
    "S3Configuration": {
      "type": "object",
      "required": [
        "destination"
      ],
      "properties": {
        "destination": {
          "type": "string"
        },
        "s3": {
          "type": "object",
          "properties": {
            "includePaths": {
              "$ref": "#/$defs/IncludePathsArray"
            }
          }
        },
        "cronExpression": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "S3PipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "configuration"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "S3"
              ]
            },
            "configuration": {
              "$ref": "#/$defs/S3Configuration"
            }
          }
        }
      ]
    },
    "SDMPipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "metadata"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "SDM"
              ]
            },
            "metadata": {
              "$ref": "#/$defs/MetaData"
            }
          }
        }
      ]
    },
    "SFTPConfiguration": {
      "type": "object",
      "required": [
        "destination"
      ],
      "properties": {
        "destination": {
          "type": "string"
        },
        "sftp": {
          "type": "object",
          "properties": {
            "includePaths": {
              "$ref": "#/$defs/IncludePathsArray"
            }
          }
        },
        "cronExpression": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "SFTPPipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "configuration"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "SFTP"
              ]
            },
            "configuration": {
              "$ref": "#/$defs/SFTPConfiguration"
            }
          }
        }
      ]
    },
    "ServiceNowConfigurationMinimal": {
      "type": "object",
      "required": [
        "destination"
      ],
      "properties": {
        "destination": {
          "type": "string"
        },
        "serviceNow": {
          "type": "object",
          "properties": {
            "includePaths": {
              "$ref": "#/$defs/IncludePathsArray"
            }
          }
        }
      },
      "additionalProperties": false
    },
    "ServiceNowPipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "configuration"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "ServiceNow"
              ]
            },
            "configuration": {
              "$ref": "#/$defs/ServiceNowConfigurationMinimal"
            }
          }
        }
      ]
    },
    "SharePointConfigGetResponse": {
      "type": "object",
      "required": [
        "site"
      ],
      "properties": {
        "site": {
          "$ref": "#/$defs/SharePointSiteGetResponse"
        }
      }
    },
    "SharePointSiteGetResponse": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "includePaths": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "WorkZonePipelineGetResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/BasePipelineResponse"
        },
        {
          "type": "object",
          "required": [
            "metadata"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "WorkZone"
              ]
            },
            "metadata": {
              "$ref": "#/$defs/MetaData"
            }
          }
        }
      ]
    }
  }
}