Skip to content

Commit

Permalink
Enable Avro Dataset in public swagger (#6816)
Browse files Browse the repository at this point in the history
* Enable Avro Dataset in public swagger

* UPDATE
  • Loading branch information
yuzhangyi authored and michaeljqzq committed Jul 31, 2019
1 parent 4bf2f1d commit 5d2449e
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,54 @@
"bucketName"
]
},
"AvroDataset": {
"x-ms-discriminator-value": "Avro",
"description": "Avro dataset.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Dataset"
}
],
"properties": {
"typeProperties": {
"description": "Avro dataset properties.",
"x-ms-client-flatten": true,
"$ref": "#/definitions/AvroDatasetTypeProperties"
}
}
},
"AvroDatasetTypeProperties": {
"description": "Avro dataset properties.",
"properties": {
"location": {
"$ref": "#/definitions/DatasetLocation",
"description": "The location of the avro storage."
},
"avroCompressionCodec": {
"type": "string",
"enum": [
"none",
"deflate",
"snappy",
"xz",
"bzip2"
],
"x-ms-enum": {
"name": "avroCompressionCodec",
"modelAsString": true
}
},
"avroCompressionLevel": {
"type": "integer",
"minimum": 1,
"maximum": 9
}
},
"required": [
"location"
]
},
"ParquetDataset": {
"x-ms-discriminator-value": "Parquet",
"description": "Parquet dataset.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,25 @@
"type"
]
},
"AvroWriteSettings": {
"description": "Avro write settings.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/FormatWriteSettings"
}
],
"properties": {
"recordName": {
"type": "string",
"description": "Top level record name in write result, which is required in AVRO spec."
},
"recordNamespace": {
"type": "string",
"description": "Record namespace in the write result."
}
}
},
"DelimitedTextWriteSettings": {
"description": "Delimited text write settings.",
"type": "object",
Expand All @@ -657,6 +676,21 @@
"fileExtension"
]
},
"AvroSource": {
"description": "A copy activity Avro source.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySource"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreReadSettings",
"description": "Avro store settings."
}
}
},
"ParquetSource": {
"description": "A copy activity Parquet source.",
"type": "object",
Expand Down Expand Up @@ -2578,6 +2612,25 @@
}
}
},
"AvroSink": {
"description": "A copy activity Avro sink.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CopySink"
}
],
"properties": {
"storeSettings": {
"$ref": "#/definitions/StoreWriteSettings",
"description": "Avro store settings."
},
"formatSettings": {
"$ref": "#/definitions/AvroWriteSettings",
"description": "Avro format settings."
}
}
},
"ParquetSink": {
"description": "A copy activity Parquet sink.",
"type": "object",
Expand Down

0 comments on commit 5d2449e

Please sign in to comment.