Skip to content

Commit a159bb4

Browse files
rickysun93Haoran Sun
andauthored
[Data Factory]Change compressionType to type of object in ADF public swagger (#16563)
* Change compressionType to type of object in ADF public swagger * edit adf swagger * resolve comment Co-authored-by: Haoran Sun <[email protected]>
1 parent ad3c2d9 commit a159bb4

File tree

3 files changed

+16
-265
lines changed
  • specification
    • datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes
    • synapse/data-plane/Microsoft.Synapse

3 files changed

+16
-265
lines changed

specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Dataset.json

Lines changed: 4 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,16 @@
446446
]
447447
},
448448
"DatasetCompression": {
449-
"discriminator": "type",
450449
"description": "The compression method used on a dataset.",
451450
"type": "object",
452451
"properties": {
453452
"type": {
454453
"type": "object",
455454
"description": "Type of dataset compression. Type: string (or Expression with resultType string)."
455+
},
456+
"level": {
457+
"type": "object",
458+
"description": "The dataset compression level. Type: string (or Expression with resultType string)."
456459
}
457460
},
458461
"additionalProperties": {
@@ -462,92 +465,6 @@
462465
"type"
463466
]
464467
},
465-
"DatasetBZip2Compression": {
466-
"x-ms-discriminator-value": "BZip2",
467-
"description": "The BZip2 compression method used on a dataset.",
468-
"type": "object",
469-
"allOf": [
470-
{
471-
"$ref": "#/definitions/DatasetCompression"
472-
}
473-
],
474-
"properties": {}
475-
},
476-
"DatasetGZipCompression": {
477-
"x-ms-discriminator-value": "GZip",
478-
"description": "The GZip compression method used on a dataset.",
479-
"type": "object",
480-
"allOf": [
481-
{
482-
"$ref": "#/definitions/DatasetCompression"
483-
}
484-
],
485-
"properties": {
486-
"level": {
487-
"type": "object",
488-
"description": "The GZip compression level."
489-
}
490-
}
491-
},
492-
"DatasetDeflateCompression": {
493-
"x-ms-discriminator-value": "Deflate",
494-
"description": "The Deflate compression method used on a dataset.",
495-
"type": "object",
496-
"allOf": [
497-
{
498-
"$ref": "#/definitions/DatasetCompression"
499-
}
500-
],
501-
"properties": {
502-
"level": {
503-
"type": "object",
504-
"description": "The Deflate compression level."
505-
}
506-
}
507-
},
508-
"DatasetZipDeflateCompression": {
509-
"x-ms-discriminator-value": "ZipDeflate",
510-
"description": "The ZipDeflate compression method used on a dataset.",
511-
"type": "object",
512-
"allOf": [
513-
{
514-
"$ref": "#/definitions/DatasetCompression"
515-
}
516-
],
517-
"properties": {
518-
"level": {
519-
"type": "object",
520-
"description": "The ZipDeflate compression level."
521-
}
522-
}
523-
},
524-
"DatasetTarCompression": {
525-
"x-ms-discriminator-value": "Tar",
526-
"description": "The Tar archive method used on a dataset.",
527-
"type": "object",
528-
"allOf": [
529-
{
530-
"$ref": "#/definitions/DatasetCompression"
531-
}
532-
],
533-
"properties": {}
534-
},
535-
"DatasetTarGZipCompression": {
536-
"x-ms-discriminator-value": "TarGZip",
537-
"description": "The TarGZip compression method used on a dataset.",
538-
"type": "object",
539-
"allOf": [
540-
{
541-
"$ref": "#/definitions/DatasetCompression"
542-
}
543-
],
544-
"properties": {
545-
"level": {
546-
"type": "object",
547-
"description": "The TarGZip compression level."
548-
}
549-
}
550-
},
551468
"CompressionLevel": {
552469
"title": "Microsoft.Azure.Management.DataFactories.Models.CompressionLevel",
553470
"description": "All available compression levels.",

specification/synapse/data-plane/Microsoft.Synapse/preview/2021-06-01-preview/entityTypes/Dataset.json

Lines changed: 6 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,16 @@
397397
]
398398
},
399399
"DatasetCompression": {
400-
"discriminator": "type",
401400
"description": "The compression method used on a dataset.",
402401
"type": "object",
403402
"properties": {
404403
"type": {
405-
"type": "string",
406-
"description": "Type of dataset compression."
404+
"type": "object",
405+
"description": "Type of dataset compression. Type: string (or Expression with resultType string)."
406+
},
407+
"level": {
408+
"type": "object",
409+
"description": "The dataset compression level. Type: string (or Expression with resultType string)."
407410
}
408411
},
409412
"additionalProperties": {
@@ -413,92 +416,6 @@
413416
"type"
414417
]
415418
},
416-
"DatasetBZip2Compression": {
417-
"x-ms-discriminator-value": "BZip2",
418-
"description": "The BZip2 compression method used on a dataset.",
419-
"type": "object",
420-
"allOf": [
421-
{
422-
"$ref": "#/definitions/DatasetCompression"
423-
}
424-
],
425-
"properties": {}
426-
},
427-
"DatasetGZipCompression": {
428-
"x-ms-discriminator-value": "GZip",
429-
"description": "The GZip compression method used on a dataset.",
430-
"type": "object",
431-
"allOf": [
432-
{
433-
"$ref": "#/definitions/DatasetCompression"
434-
}
435-
],
436-
"properties": {
437-
"level": {
438-
"type": "object",
439-
"description": "The GZip compression level. Type: string (or Expression with resultType string)."
440-
}
441-
}
442-
},
443-
"DatasetDeflateCompression": {
444-
"x-ms-discriminator-value": "Deflate",
445-
"description": "The Deflate compression method used on a dataset.",
446-
"type": "object",
447-
"allOf": [
448-
{
449-
"$ref": "#/definitions/DatasetCompression"
450-
}
451-
],
452-
"properties": {
453-
"level": {
454-
"type": "object",
455-
"description": "The Deflate compression level. Type: string (or Expression with resultType string)."
456-
}
457-
}
458-
},
459-
"DatasetZipDeflateCompression": {
460-
"x-ms-discriminator-value": "ZipDeflate",
461-
"description": "The ZipDeflate compression method used on a dataset.",
462-
"type": "object",
463-
"allOf": [
464-
{
465-
"$ref": "#/definitions/DatasetCompression"
466-
}
467-
],
468-
"properties": {
469-
"level": {
470-
"type": "object",
471-
"description": "The ZipDeflate compression level. Type: string (or Expression with resultType string)."
472-
}
473-
}
474-
},
475-
"DatasetTarCompression": {
476-
"x-ms-discriminator-value": "Tar",
477-
"description": "The Tar archive method used on a dataset.",
478-
"type": "object",
479-
"allOf": [
480-
{
481-
"$ref": "#/definitions/DatasetCompression"
482-
}
483-
],
484-
"properties": {}
485-
},
486-
"DatasetTarGZipCompression": {
487-
"x-ms-discriminator-value": "TarGZip",
488-
"description": "The TarGZip compression method used on a dataset.",
489-
"type": "object",
490-
"allOf": [
491-
{
492-
"$ref": "#/definitions/DatasetCompression"
493-
}
494-
],
495-
"properties": {
496-
"level": {
497-
"type": "object",
498-
"description": "The TarGZip compression level. Type: string (or Expression with resultType string)."
499-
}
500-
}
501-
},
502419
"CompressionLevel": {
503420
"title": "Microsoft.Azure.Management.DataFactories.Models.CompressionLevel",
504421
"description": "All available compression levels.",

specification/synapse/data-plane/Microsoft.Synapse/stable/2020-12-01/entityTypes/Dataset.json

Lines changed: 6 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,16 @@
397397
]
398398
},
399399
"DatasetCompression": {
400-
"discriminator": "type",
401400
"description": "The compression method used on a dataset.",
402401
"type": "object",
403402
"properties": {
404403
"type": {
405-
"type": "string",
406-
"description": "Type of dataset compression."
404+
"type": "object",
405+
"description": "Type of dataset compression. Type: string (or Expression with resultType string)."
406+
},
407+
"level": {
408+
"type": "object",
409+
"description": "The dataset compression level. Type: string (or Expression with resultType string)."
407410
}
408411
},
409412
"additionalProperties": {
@@ -413,92 +416,6 @@
413416
"type"
414417
]
415418
},
416-
"DatasetBZip2Compression": {
417-
"x-ms-discriminator-value": "BZip2",
418-
"description": "The BZip2 compression method used on a dataset.",
419-
"type": "object",
420-
"allOf": [
421-
{
422-
"$ref": "#/definitions/DatasetCompression"
423-
}
424-
],
425-
"properties": {}
426-
},
427-
"DatasetGZipCompression": {
428-
"x-ms-discriminator-value": "GZip",
429-
"description": "The GZip compression method used on a dataset.",
430-
"type": "object",
431-
"allOf": [
432-
{
433-
"$ref": "#/definitions/DatasetCompression"
434-
}
435-
],
436-
"properties": {
437-
"level": {
438-
"type": "object",
439-
"description": "The GZip compression level. Type: string (or Expression with resultType string)."
440-
}
441-
}
442-
},
443-
"DatasetDeflateCompression": {
444-
"x-ms-discriminator-value": "Deflate",
445-
"description": "The Deflate compression method used on a dataset.",
446-
"type": "object",
447-
"allOf": [
448-
{
449-
"$ref": "#/definitions/DatasetCompression"
450-
}
451-
],
452-
"properties": {
453-
"level": {
454-
"type": "object",
455-
"description": "The Deflate compression level. Type: string (or Expression with resultType string)."
456-
}
457-
}
458-
},
459-
"DatasetZipDeflateCompression": {
460-
"x-ms-discriminator-value": "ZipDeflate",
461-
"description": "The ZipDeflate compression method used on a dataset.",
462-
"type": "object",
463-
"allOf": [
464-
{
465-
"$ref": "#/definitions/DatasetCompression"
466-
}
467-
],
468-
"properties": {
469-
"level": {
470-
"type": "object",
471-
"description": "The ZipDeflate compression level. Type: string (or Expression with resultType string)."
472-
}
473-
}
474-
},
475-
"DatasetTarCompression": {
476-
"x-ms-discriminator-value": "Tar",
477-
"description": "The Tar archive method used on a dataset.",
478-
"type": "object",
479-
"allOf": [
480-
{
481-
"$ref": "#/definitions/DatasetCompression"
482-
}
483-
],
484-
"properties": {}
485-
},
486-
"DatasetTarGZipCompression": {
487-
"x-ms-discriminator-value": "TarGZip",
488-
"description": "The TarGZip compression method used on a dataset.",
489-
"type": "object",
490-
"allOf": [
491-
{
492-
"$ref": "#/definitions/DatasetCompression"
493-
}
494-
],
495-
"properties": {
496-
"level": {
497-
"type": "object",
498-
"description": "The TarGZip compression level. Type: string (or Expression with resultType string)."
499-
}
500-
}
501-
},
502419
"CompressionLevel": {
503420
"title": "Microsoft.Azure.Management.DataFactories.Models.CompressionLevel",
504421
"description": "All available compression levels.",

0 commit comments

Comments
 (0)