Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for subclip in the swagger files #5823

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@
],
"modelAsString": true
},
"description": "The type of insights to be extracted. If not set then based on the content the type will selected. If the content is audio only then only audio insights are extracted and if it is video only."
"description": "Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out."
}
},
"type": "object",
Expand Down Expand Up @@ -1156,6 +1156,14 @@
},
"description": "List of files. Required for JobInputHttp. Maximum of 4000 characters each."
},
"start": {
"$ref": "#/definitions/ClipTime",
"description": "Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media."
},
"end": {
"$ref": "#/definitions/ClipTime",
"description": "Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media."
},
"label": {
"type": "string",
"description": "A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'."
Expand All @@ -1164,6 +1172,40 @@
"type": "object",
"description": "Represents input files for a Job."
},
"ClipTime": {
"discriminator": "@odata.type",
"properties": {
"@odata.type": {
"type": "string",
"description": "The discriminator for derived types."
}
},
"type": "object",
"required": [
"@odata.type"
],
"description": "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media."
},
"AbsoluteClipTime": {
"x-ms-discriminator-value": "#Microsoft.Media.AbsoluteClipTime",
"allOf": [
{
"$ref": "#/definitions/ClipTime"
}
],
"properties": {
"time": {
"type": "string",
"format": "duration",
"description": "The time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds."
}
},
"type": "object",
"required": [
"time"
],
"description": "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not."
},
"JobInputs": {
"x-ms-discriminator-value": "#Microsoft.Media.JobInputs",
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-08-08T16:29:58.2188352Z",
"created": "2019-03-28T21:17:17.444777Z",
"state": "Queued",
"input": {
"@odata.type": "#Microsoft.Media.JobInputAsset",
"files": [],
"assetName": "job1-InputAsset"
},
"lastModified": "2018-08-08T16:29:58.2188352Z",
"lastModified": "2019-03-28T21:17:17.444777Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-08-08T16:29:58.1798Z",
"created": "0001-01-01T00:00:00Z",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this date has change to 0001?

"state": "Queued",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -27,7 +27,7 @@
}
]
},
"lastModified": "2018-08-08T16:29:58.1798Z",
"lastModified": "0001-01-01T00:00:00Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"resourceGroupName": "contosoresources",
"accountName": "contosomedia",
"transformName": "exampleTransform",
"$filter": "properties/created ge 2018-09-27T22:56:18.5507138Z and properties/created le 2018-09-27T22:56:28.5507138Z",
"$filter": "properties/created ge 2019-03-28T21:17:27.3367769Z and properties/created le 2019-03-28T21:17:37.3367769Z",
"$orderby": "properties/created"
},
"responses": {
Expand All @@ -17,7 +17,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-09-27T22:56:18.5507138Z",
"created": "2019-03-28T21:17:27.3367769Z",
"state": "Processing",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -29,7 +29,7 @@
}
]
},
"lastModified": "2018-09-27T22:56:18.5507138Z",
"lastModified": "2019-03-28T21:17:27.3367769Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand All @@ -48,7 +48,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-09-27T22:56:28.5507138Z",
"created": "2019-03-28T21:17:37.3367769Z",
"state": "Finished",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -60,7 +60,7 @@
}
]
},
"lastModified": "2018-09-27T22:56:28.5507138Z",
"lastModified": "2019-03-28T21:17:37.3367769Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"resourceGroupName": "contosoresources",
"accountName": "contosomedia",
"transformName": "exampleTransform",
"$filter": "properties/lastmodified ge 2018-09-27T22:56:18.5821662Z and properties/lastmodified le 2018-09-27T22:56:28.5821662Z",
"$filter": "properties/lastmodified ge 2019-03-28T21:17:27.3527769Z and properties/lastmodified le 2019-03-28T21:17:37.3527769Z",
"$orderby": "properties/lastmodified desc"
},
"responses": {
Expand All @@ -17,7 +17,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-09-27T22:56:28.5821662Z",
"created": "2019-03-28T21:17:37.3527769Z",
"state": "Finished",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -29,7 +29,7 @@
}
]
},
"lastModified": "2018-09-27T22:56:28.5821662Z",
"lastModified": "2019-03-28T21:17:37.3527769Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand All @@ -48,7 +48,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-09-27T22:56:18.5821662Z",
"created": "2019-03-28T21:17:27.3527769Z",
"state": "Processing",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -60,7 +60,7 @@
}
]
},
"lastModified": "2018-09-27T22:56:18.5821662Z",
"lastModified": "2019-03-28T21:17:27.3527769Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-08-08T16:29:58.0908004Z",
"created": "0001-01-01T00:00:00Z",
"state": "Queued",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -27,7 +27,7 @@
}
]
},
"lastModified": "2018-08-08T16:29:58.0908004Z",
"lastModified": "0001-01-01T00:00:00Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand All @@ -46,7 +46,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job2",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-08-08T16:29:58.0927994Z",
"created": "0001-01-01T00:00:00Z",
"state": "Processing",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -58,7 +58,7 @@
}
]
},
"lastModified": "2018-08-08T16:29:58.0927994Z",
"lastModified": "0001-01-01T00:00:00Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand All @@ -77,7 +77,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job3",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-08-08T16:29:58.0927994Z",
"created": "0001-01-01T00:00:00Z",
"state": "Finished",
"input": {
"@odata.type": "#Microsoft.Media.JobInputs",
Expand All @@ -89,7 +89,7 @@
}
]
},
"lastModified": "2018-08-08T16:29:58.0927994Z",
"lastModified": "0001-01-01T00:00:00Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/exampleTransform/jobs/job1",
"type": "Microsoft.Media/mediaservices/transforms/jobs",
"properties": {
"created": "2018-08-08T16:29:58.3218119Z",
"created": "0001-01-01T00:00:00Z",
"state": "Queued",
"description": "Example job to illustrate update.",
"input": {
Expand All @@ -33,7 +33,7 @@
}
]
},
"lastModified": "2018-08-08T16:29:58.3368364Z",
"lastModified": "2019-03-28T21:17:17.621307Z",
"outputs": [
{
"@odata.type": "#Microsoft.Media.JobOutputAsset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"parameters": {
"properties": {
"description": "Example Transform to illustrate create and update.",
"created": "0001-01-01T00:00:00-05:00",
"lastModified": "0001-01-01T00:00:00-05:00",
"created": "0001-01-01T00:00:00-08:00",
"lastModified": "0001-01-01T00:00:00-08:00",
"outputs": [
{
"relativePriority": null,
Expand All @@ -30,9 +30,9 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-08-08T16:29:57.9828393-04:00",
"created": "2019-03-28T21:17:17.0167832-07:00",
"description": "Example Transform to illustrate create and update.",
"lastModified": "2018-08-08T16:29:57.9828393-04:00",
"lastModified": "2019-03-28T21:17:17.0167832-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
Expand All @@ -52,9 +52,9 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/createdTransform",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-08-08T16:29:57.9828393-04:00",
"created": "2019-03-28T21:17:17.0167832-07:00",
"description": "Example Transform to illustrate create and update.",
"lastModified": "2018-08-08T16:29:57.9998038-04:00",
"lastModified": "2019-03-28T21:17:17.0592877-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleTransform",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-08-08T16:29:57.8095562-04:00",
"created": "2019-03-28T21:17:16.8607802-07:00",
"description": "A sample Transform using the Standard Encoder with a built in preset.",
"lastModified": "2018-08-08T16:29:57.8095562-04:00",
"lastModified": "2019-03-28T21:17:16.8607802-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "contosoresources",
"accountName": "contosomedia",
"$filter": "properties/created gt 2018-09-27T22:56:07.7621546Z and properties/created le 2018-09-27T22:56:17.7621546Z",
"$filter": "properties/created gt 2019-03-28T21:17:16.8252878Z and properties/created le 2019-03-28T21:17:26.8252878Z",
"$orderby": "properties/created"
},
"responses": {
Expand All @@ -16,9 +16,9 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-09-27T22:56:17.7621546-07:00",
"created": "2019-03-28T21:17:26.8252878-07:00",
"description": "A sample Transform using the Video Analyzer.",
"lastModified": "2018-09-27T22:56:17.7621546-07:00",
"lastModified": "2019-03-28T21:17:26.8252878-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "contosoresources",
"accountName": "contosomedia",
"$filter": "properties/lastmodified gt 2018-09-27T22:56:07.7840953Z and properties/lastmodified le 2018-09-27T22:56:17.7840953Z",
"$filter": "properties/lastmodified gt 2019-03-28T21:17:16.8477794Z and properties/lastmodified le 2019-03-28T21:17:26.8477794Z",
"$orderby": "properties/lastmodified desc"
},
"responses": {
Expand All @@ -16,9 +16,9 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-09-27T22:56:17.7840953-07:00",
"created": "2019-03-28T21:17:26.8477794-07:00",
"description": "A sample Transform using the Video Analyzer.",
"lastModified": "2018-09-27T22:56:17.7840953-07:00",
"lastModified": "2019-03-28T21:17:26.8477794-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncodeAndVideoIndex",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-09-27T22:56:07.5846087-07:00",
"created": "2019-03-28T21:17:16.7187893-07:00",
"description": "A sample Transform using the Standard Encoder with a built-in preset, as well as the Video Analyzer.",
"lastModified": "2018-09-27T22:56:07.5846087-07:00",
"lastModified": "2019-03-28T21:17:16.7187893-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
"relativePriority": "Normal",
"preset": {
"@odata.type": "#Microsoft.Media.VideoAnalyzerPreset",
"insightsToExtract": "AllInsights"
"@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset",
"presetName": "AdaptiveStreaming"
}
},
{
"onError": "StopProcessingJob",
"relativePriority": "Normal",
"preset": {
"@odata.type": "#Microsoft.Media.BuiltInStandardEncoderPreset",
"presetName": "AdaptiveStreaming"
"@odata.type": "#Microsoft.Media.VideoAnalyzerPreset",
"insightsToExtract": "AllInsights"
}
}
]
Expand All @@ -44,9 +44,9 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosoresources/providers/Microsoft.Media/mediaservices/contosomedia/transforms/sampleEncode",
"type": "Microsoft.Media/mediaservices/transforms",
"properties": {
"created": "2018-09-27T22:56:07.5846087-07:00",
"created": "2019-03-28T21:17:16.7182796-07:00",
"description": "A sample Transform using the Standard Encoder with a built in preset.",
"lastModified": "2018-09-27T22:56:07.5846087-07:00",
"lastModified": "2019-03-28T21:17:16.7182796-07:00",
"outputs": [
{
"onError": "StopProcessingJob",
Expand Down
Loading