Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Media/Encoding to add ve…
Browse files Browse the repository at this point in the history
…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
jinshang-msft authored Jan 12, 2023
1 parent 40de159 commit fe6e157
Show file tree
Hide file tree
Showing 22 changed files with 4,711 additions and 1 deletion.

Large diffs are not rendered by default.

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": {}
}
}
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
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"
}
}
]
}
}
}
}
Loading

0 comments on commit fe6e157

Please sign in to comment.