-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.Media/Encoding to add ve…
…rsion preview/2022-05-01-preview (#21160) * Adds base for updating Microsoft.Media/Encoding from version stable/2021-11-01 to version 2022-05-01-preview * Updates readme * Updates API version in new specs and examples * Copy over the swagger files for 2022-05-01-preview * Fix validation failures * Fix validation failures * Fix validation failures II * Fix readme file * Fix readme file II * Fix readme file III * Restore the original order of the existing models * Revert the casing change in api version description
- Loading branch information
1 parent
40de159
commit fe6e157
Showing
22 changed files
with
4,711 additions
and
1 deletion.
There are no files selected for viewing
3,301 changes: 3,301 additions & 0 deletions
3,301
...rvices/resource-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/Encoding.json
Large diffs are not rendered by default.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...rce-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-cancel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "contosoresources", | ||
"accountName": "contosomedia", | ||
"transformName": "exampleTransform", | ||
"jobName": "job1" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
70 changes: 70 additions & 0 deletions
70
...rce-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "contosoresources", | ||
"accountName": "contosomedia", | ||
"transformName": "exampleTransform", | ||
"jobName": "job1", | ||
"parameters": { | ||
"properties": { | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"assetName": "job1-InputAsset" | ||
}, | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"assetName": "job1-OutputAsset" | ||
} | ||
], | ||
"correlationData": { | ||
"key1": "value1", | ||
"Key 2": "Value 2" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"name": "job1", | ||
"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": "2022-10-17T23:14:23.5924668Z", | ||
"state": "Queued", | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"files": [], | ||
"inputDefinitions": [], | ||
"assetName": "job1-InputAsset" | ||
}, | ||
"lastModified": "2022-10-17T23:14:23.5924668Z", | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"state": "Queued", | ||
"progress": 0, | ||
"label": "BuiltInStandardEncoderPreset_0", | ||
"assetName": "job1-OutputAsset" | ||
} | ||
], | ||
"priority": "Normal", | ||
"correlationData": { | ||
"key1": "value1", | ||
"Key 2": "Value 2" | ||
} | ||
}, | ||
"systemData": { | ||
"createdBy": "contoso@microsoft.com", | ||
"createdByType": "User", | ||
"createdAt": "2022-10-17T23:14:23.5924668Z", | ||
"lastModifiedBy": "contoso@microsoft.com", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-10-17T23:14:23.5924668Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...rce-manager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "contosoresources", | ||
"accountName": "contosomedia", | ||
"transformName": "exampleTransform", | ||
"jobName": "jobToDelete" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...anager/Microsoft.Media/Encoding/preview/2022-05-01-preview/examples/jobs-get-by-name.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "contosoresources", | ||
"accountName": "contosomedia", | ||
"transformName": "exampleTransform", | ||
"jobName": "job1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "job1", | ||
"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": "2021-06-01T00:00:00Z", | ||
"state": "Queued", | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputs", | ||
"inputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"files": [], | ||
"inputDefinitions": [], | ||
"assetName": "job1-InputAsset" | ||
} | ||
] | ||
}, | ||
"lastModified": "2021-06-01T00:00:00Z", | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"state": "Queued", | ||
"progress": 0, | ||
"label": "example-custom-label", | ||
"assetName": "job1-OutputAsset" | ||
} | ||
], | ||
"priority": "Low", | ||
"correlationData": {} | ||
}, | ||
"systemData": { | ||
"createdBy": "contoso@microsoft.com", | ||
"createdByType": "User", | ||
"createdAt": "2021-06-01T00:00:00Z", | ||
"lastModifiedBy": "contoso@microsoft.com", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-06-01T00:00:00Z" | ||
} | ||
} | ||
} | ||
} | ||
} |
105 changes: 105 additions & 0 deletions
105
...t.Media/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-created.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "contosoresources", | ||
"accountName": "contosomedia", | ||
"transformName": "exampleTransform", | ||
"$filter": "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le 2021-06-01T00:00:20.0000000Z", | ||
"$orderby": "properties/created" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "job2", | ||
"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": "2021-06-01T00:00:10Z", | ||
"state": "Processing", | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputs", | ||
"inputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"files": [], | ||
"inputDefinitions": [], | ||
"assetName": "job2-InputAsset" | ||
} | ||
] | ||
}, | ||
"lastModified": "2021-06-01T00:00:10Z", | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"state": "Processing", | ||
"progress": 50, | ||
"label": "example-custom-label", | ||
"startTime": "2022-10-17T23:04:23.1601067Z", | ||
"assetName": "job2-OutputAsset" | ||
} | ||
], | ||
"priority": "Low", | ||
"correlationData": {}, | ||
"startTime": "2022-10-17T23:04:23.1601067Z" | ||
}, | ||
"systemData": { | ||
"createdBy": "contoso@microsoft.com", | ||
"createdByType": "User", | ||
"createdAt": "2021-06-01T00:00:10Z", | ||
"lastModifiedBy": "contoso@microsoft.com", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-06-01T00:00:10Z" | ||
} | ||
}, | ||
{ | ||
"name": "job3", | ||
"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": "2021-06-01T00:00:20Z", | ||
"state": "Finished", | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputs", | ||
"inputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"files": [], | ||
"inputDefinitions": [], | ||
"assetName": "job3-InputAsset" | ||
} | ||
] | ||
}, | ||
"lastModified": "2021-06-01T00:00:20Z", | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"state": "Finished", | ||
"progress": 100, | ||
"label": "example-custom-label", | ||
"startTime": "2022-10-17T23:04:23.1601067Z", | ||
"endTime": "2022-10-17T23:14:23.1601067Z", | ||
"assetName": "job3-OutputAsset" | ||
} | ||
], | ||
"priority": "Low", | ||
"correlationData": {}, | ||
"startTime": "2022-10-17T23:04:23.1601067Z", | ||
"endTime": "2022-10-17T23:14:23.1601067Z" | ||
}, | ||
"systemData": { | ||
"createdBy": "contoso@microsoft.com", | ||
"createdByType": "User", | ||
"createdAt": "2021-06-01T00:00:20Z", | ||
"lastModifiedBy": "contoso@microsoft.com", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-06-01T00:00:20Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
105 changes: 105 additions & 0 deletions
105
...ia/Encoding/preview/2022-05-01-preview/examples/jobs-list-all-filter-by-lastmodified.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-05-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"resourceGroupName": "contosoresources", | ||
"accountName": "contosomedia", | ||
"transformName": "exampleTransform", | ||
"$filter": "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le 2021-06-01T00:00:20.0000000Z", | ||
"$orderby": "properties/lastmodified desc" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "job3", | ||
"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": "2021-06-01T00:00:20Z", | ||
"state": "Finished", | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputs", | ||
"inputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"files": [], | ||
"inputDefinitions": [], | ||
"assetName": "job3-InputAsset" | ||
} | ||
] | ||
}, | ||
"lastModified": "2021-06-01T00:00:20Z", | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"state": "Finished", | ||
"progress": 100, | ||
"label": "example-custom-label", | ||
"startTime": "2022-10-17T23:04:23.3072675Z", | ||
"endTime": "2022-10-17T23:14:23.3072675Z", | ||
"assetName": "job3-OutputAsset" | ||
} | ||
], | ||
"priority": "Low", | ||
"correlationData": {}, | ||
"startTime": "2022-10-17T23:04:23.3072675Z", | ||
"endTime": "2022-10-17T23:14:23.3072675Z" | ||
}, | ||
"systemData": { | ||
"createdBy": "contoso@microsoft.com", | ||
"createdByType": "User", | ||
"createdAt": "2021-06-01T00:00:20Z", | ||
"lastModifiedBy": "contoso@microsoft.com", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-06-01T00:00:20Z" | ||
} | ||
}, | ||
{ | ||
"name": "job2", | ||
"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": "2021-06-01T00:00:10Z", | ||
"state": "Processing", | ||
"input": { | ||
"@odata.type": "#Microsoft.Media.JobInputs", | ||
"inputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobInputAsset", | ||
"files": [], | ||
"inputDefinitions": [], | ||
"assetName": "job2-InputAsset" | ||
} | ||
] | ||
}, | ||
"lastModified": "2021-06-01T00:00:10Z", | ||
"outputs": [ | ||
{ | ||
"@odata.type": "#Microsoft.Media.JobOutputAsset", | ||
"state": "Processing", | ||
"progress": 50, | ||
"label": "example-custom-label", | ||
"startTime": "2022-10-17T23:04:23.3072675Z", | ||
"assetName": "job2-OutputAsset" | ||
} | ||
], | ||
"priority": "Low", | ||
"correlationData": {}, | ||
"startTime": "2022-10-17T23:04:23.3072675Z" | ||
}, | ||
"systemData": { | ||
"createdBy": "contoso@microsoft.com", | ||
"createdByType": "User", | ||
"createdAt": "2021-06-01T00:00:10Z", | ||
"lastModifiedBy": "contoso@microsoft.com", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-06-01T00:00:10Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.