From 96ba9a299517a5dad8005afdd8ac5427bb84fca9 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Wed, 20 Jul 2022 11:39:23 +0300 Subject: [PATCH 1/7] Add new preview version --- .../ViAccountCheckNameAvailabilityFree.json | 17 + .../ViAccountCheckNameAvailabilityTaken.json | 19 + .../examples/ViAccountDelete.json | 21 + .../examples/ViAccountGet.json | 38 + .../ViAccountPatch/ViAccountPatch1.json | 76 + .../ViAccountPatch/ViAccountPatch2.json | 76 + .../ViAccountPatch/ViAccountPatch3.json | 76 + .../ViAccountPatch/ViAccountPatch4.json | 76 + .../ViAccountPatch/ViAccountPatch5.json | 76 + .../ViAccountPatch/ViAccountPatch6.json | 42 + .../ViAccountPatch/ViAccountPatch7.json | 49 + .../ViAccountPatch/ViAccountPatch8.json | 50 + .../examples/ViAccountPut/ViAccountPut1.json | 86 ++ .../examples/ViAccountPut/ViAccountPut10.json | 55 + .../examples/ViAccountPut/ViAccountPut2.json | 86 ++ .../examples/ViAccountPut/ViAccountPut3.json | 86 ++ .../examples/ViAccountPut/ViAccountPut4.json | 86 ++ .../examples/ViAccountPut/ViAccountPut5.json | 86 ++ .../examples/ViAccountPut/ViAccountPut6.json | 86 ++ .../examples/ViAccountPut/ViAccountPut7.json | 86 ++ .../examples/ViAccountPut/ViAccountPut8.json | 56 + .../examples/ViAccountPut/ViAccountPut9.json | 43 + .../examples/ViAccountsList.json | 41 + .../ViAccountsListByResourceGroup.json | 42 + .../examples/ViClassicAccounts.json | 60 + ...GenerateAccountContributerAccessToken.json | 46 + .../ViGenerateAccountReaderAccessToken.json | 46 + ...enerateProjectContributerAccessToken1.json | 52 + ...enerateProjectContributerAccessToken2.json | 52 + .../ViGenerateProjectReaderAccessToken1.json | 52 + .../ViGenerateProjectReaderAccessToken2.json | 52 + ...iGenerateVideoContributerAccessToken1.json | 52 + ...iGenerateVideoContributerAccessToken2.json | 52 + .../ViGenerateVideoReaderAccessToken1.json | 52 + .../ViGenerateVideoReaderAccessToken2.json | 52 + .../examples/ViListUserClassicAccounts.json | 28 + .../examples/ViOperationsList.json | 40 + .../preview/2022-07-20-preview/vi.json | 1281 +++++++++++++++++ 38 files changed, 3372 insertions(+) create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json new file mode 100644 index 000000000000..d37c37f68f03 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-04-13-preview", + "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e", + "checkNameAvailabilityParameters": { + "name": "vi1", + "type": "Microsoft.VideoIndexer/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json new file mode 100644 index 000000000000..01530838dda4 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2022-04-13-preview", + "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e", + "checkNameAvailabilityParameters": { + "name": "vi1", + "type": "Microsoft.VideoIndexer/accounts" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": false, + "reason": "AlreadyExists", + "message": "Resource name already exists" + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json new file mode 100644 index 000000000000..0347c8f34e6c --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contoso-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3" + }, + "responses": { + "200": {}, + "202": {}, + "204": {}, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json new file mode 100644 index 000000000000..c10e82526516 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contoso-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer", + "name": "vi1", + "type": "Microsoft.VideoIndexer/accounts", + "location": "NorthEurope", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json new file mode 100644 index 000000000000..c97a13ebc0ec --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "properties": { + "mediaServices": { + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 1000, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "EVENT_GRID_NOT_REGISTERED", + "message": "Microsoft.EventGrid resource provider is not registered in subscription" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json new file mode 100644 index 000000000000..3434f55a8f5b --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "properties": { + "mediaServices": { + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 1000, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_IN_ANOTHER_LOCATION", + "message": "Can not connect to a Media Services account which is not in the same location as the VideoIndexer account" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json new file mode 100644 index 000000000000..22c61e5bfb50 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "properties": { + "mediaServices": { + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 1000, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_UNREACHABLE", + "message": "Failed to connect to Media Services account" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json new file mode 100644 index 000000000000..37f343df5682 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "properties": { + "mediaServices": { + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 1000, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_INVALID_AAD_CONNECTION", + "message": "Cannot connect to resource '{AadConnectionConfig.AmsResourceUri}' due to issue with AAD application '{AadConnectionConfig.AadApplicationId}' that should have permissions to it.'" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json new file mode 100644 index 000000000000..fc74612f1b8a --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json @@ -0,0 +1,76 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "properties": { + "mediaServices": { + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 1000, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_AAD_APPLICATION_INSUFFICIENT_PERMISSION", + "message": "The AAD application is Unauthorized. Make sure it has at least 'Contributor' permissions" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json new file mode 100644 index 000000000000..a9421230615d --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": {} + } + }, + "400": { + "body": { + "error": { + "code": "InvalidResource", + "message": "The resource definition is invalid." + } + } + }, + "404": { + "body": { + "error": {} + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json new file mode 100644 index 000000000000..606785a9055f --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": {} + } + }, + "400": { + "body": { + "error": {} + } + }, + "404": { + "body": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource 'contosto-videoanalyzer' under resource group 'contosto-videoanalyzer-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json new file mode 100644 index 000000000000..dd17d1e15714 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "properties": { + "mediaServices": { + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": {} + } + }, + "400": { + "body": { + "error": { + "code": "MissingIdentityIds", + "message": "The identity ids must not be null or empty for 'UserAssigned' identity type." + } + } + }, + "404": { + "body": {} + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json new file mode 100644 index 000000000000..8f99f95e0bf1 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "EVENT_GRID_NOT_REGISTERED", + "message": "Microsoft.EventGrid resource provider is not registered in subscription" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json new file mode 100644 index 000000000000..c90a38eae137 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": {} + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": {} + } + }, + "400": { + "body": { + "error": { + "code": "MissingIdentityIds", + "message": "The identity ids must not be null or empty for 'UserAssigned' identity type." + } + } + }, + "404": { + "body": {} + }, + "409": { + "body": {} + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json new file mode 100644 index 000000000000..ee289925a17d --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_IN_ANOTHER_LOCATION", + "message": "Can not connect to a Media Services account which is not in the same location as the VideoIndexer account" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json new file mode 100644 index 000000000000..9523725194be --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_UNREACHABLE", + "message": "Failed to connect to Media Services account" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json new file mode 100644 index 000000000000..11cb03f84170 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_AAD_APPLICATION_INSUFFICIENT_PERMISSION", + "message": "The AAD application is Unauthorized. Make sure it has at least 'Contributor' permissions" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json new file mode 100644 index 000000000000..750329ee1cf7 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "AMS_INVALID_AAD_CONNECTION", + "message": "Cannot connect to resource '{AadConnectionConfig.AmsResourceUri}' due to issue with AAD application '{AadConnectionConfig.AadApplicationId}' that should have permissions to it.'" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json new file mode 100644 index 000000000000..c6279b0bb4be --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "EVENT_GRID_NOT_REGISTERED", + "message": "Microsoft.EventGrid resource provider is not registered in subscription" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Account not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "InvalidResourceLocation", + "message": "The resource 'xxx' already exists in location 'xxx' in resource group 'xxx'. A resource with the same name cannot be created in location 'xxx'. Please select a new resource name." + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json new file mode 100644 index 000000000000..2d69b2014b4b --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "totalSecondsIndexed": 0, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + }, + "400": { + "body": { + "error": { + "code": "EVENT_GRID_NOT_REGISTERED", + "message": "Microsoft.EventGrid resource provider is not registered in subscription" + } + } + }, + "404": { + "body": { + "error": { + "code": "RersourceGroupNotFound", + "message": "Resource group 'contosto-videoanalyzer-rg' could not be found." + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json new file mode 100644 index 000000000000..f7ce3315fbd7 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "location": "NorthEurope", + "properties": { + "mediaServices": { + "resourceId": "/subscriptions/24237b72-8546-4da5-b204-8c3cb76dd930/resourceGroups/uratzmon-rg/providers/Microsoft.Media/mediaservices/talshoham" + } + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "subscriptions/24237b72-8546-4da5-b204-8c3cb76dd930/resourceGroups/uratzmon-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/talshoham": {} + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": {} + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "UserAssignedIdentity is empty. Trace id:'9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "404": { + "body": {} + }, + "409": { + "body": {} + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json new file mode 100644 index 000000000000..ac8469e09a61 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer", + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "type": "Microsoft.VideoIndexer/accounts", + "tags": {}, + "properties": {} + } + }, + "400": { + "body": { + "error": { + "code": "InvalidResource", + "message": "The resource definition is invalid." + } + } + }, + "404": { + "body": {} + }, + "409": { + "body": {} + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json new file mode 100644 index 000000000000..fa8b73a455da --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2022-04-13-preview", + "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer", + "name": "vi1", + "type": "Microsoft.VideoIndexer/accounts", + "location": "NorthEurope", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "provisioningState": "Provisioning" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json new file mode 100644 index 000000000000..fba3f7c55cb3 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "resourceGroupName": "contoso-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/586d4f48-8f08-4a4e-96b7-e1892d6dba9e/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.VideoIndexer/accounts/contoso-videoanalyzer-rg", + "name": "vi1", + "type": "Microsoft.VideoIndexer/accounts", + "location": "NorthEurope", + "tags": {}, + "properties": { + "tenantId": "8c406f87-77ac-4ebb-a401-e8562450630e", + "accountId": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "accountName": "contosto-videoanalyzer", + "mediaServices": { + "resourceId": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoanalyzer-ms", + "userAssignedIdentity": "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "type": "UserAssigned", + "userAssignedIdentities": { + "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoanalyzer-mi": { + "principalId": "a661c16c-ee39-46e7-93f6-7fb80d17ef13", + "clientId": "92e65ecf-0fae-432e-8272-fedb6edb96c7" + } + } + } + } + ], + "nextLink": "link" + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json new file mode 100644 index 000000000000..2ee3cd2dda2a --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2022-04-13-preview", + "location": "NorthEurope", + "accountName": "contosto-videoanalyzer" + }, + "responses": { + "200": { + "body": { + "name": "contosto-videoanalyzer", + "location": "NorthEurope", + "id": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574", + "properties": { + "mediaServices": { + "aadApplicationId": "912f96dc-1ed3-4d7d-aa67-0adef4bb68ad", + "aadTenantId": "72f988bf-86f1-41ag-91ab-2d7cd061db47", + "connected": true, + "eventGridProviderRegistered": true, + "name": "contosoVideoanalyzerMediaServices", + "resourceGroup": "contoso-videoanalyzer-rg", + "streamingEndpointStarted": false, + "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" + } + } + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "AccountName is empty" + } + } + }, + "401": { + "body": { + "error": { + "code": "USER_NOT_ALLOWED", + "message": "User is not account owner for account - contoso-videoanalyzer" + } + } + }, + "404": { + "body": { + "error": { + "code": "ACCOUNT_NOT_FOUND", + "message": "Classic account not found or has been deleted and is pending deletion has been deleted and is pending deletion - contoso-videoanalyzer" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json new file mode 100644 index 000000000000..430e2e2c1196 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Contributor", + "scope": "Account" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": {} + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json new file mode 100644 index 000000000000..bf4fb742dcd5 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Reader", + "scope": "Account" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": {} + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json new file mode 100644 index 000000000000..6d6f117361ac --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Contributor", + "scope": "Project", + "projectId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "BREAKDOWN_NOT_FOUND", + "message": "Video/Project '07ec9e38d4' was not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json new file mode 100644 index 000000000000..c3ca3e6c9359 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Contributor", + "scope": "Project", + "projectId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json new file mode 100644 index 000000000000..206df5933304 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Reader", + "scope": "Project", + "projectId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "BREAKDOWN_NOT_FOUND", + "message": "Video/Project '07ec9e38d4' was not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json new file mode 100644 index 000000000000..821c5e401183 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Reader", + "scope": "Project", + "projectId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json new file mode 100644 index 000000000000..9f1e235969bb --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Contributor", + "scope": "Video", + "videoId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "BREAKDOWN_NOT_FOUND", + "message": "Video/Project '07ec9e38d4' was not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json new file mode 100644 index 000000000000..b2ccc0e13825 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Contributor", + "scope": "Video", + "videoId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json new file mode 100644 index 000000000000..f6d1785f5b6b --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Reader", + "scope": "Video", + "videoId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "BREAKDOWN_NOT_FOUND", + "message": "Video/Project '07ec9e38d4' was not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json new file mode 100644 index 000000000000..09fe137c5466 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-04-13-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "permissionType": "Reader", + "scope": "Video", + "videoId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json new file mode 100644 index 000000000000..0aec04fa8f0b --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2022-04-13-preview", + "location": "NorthEurope" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "contoso-videoanalyzer", + "location": "NorthEurope", + "id": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574" + } + ], + "nextLink": "link" + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json new file mode 100644 index 000000000000..766f938e0956 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2022-04-13-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.VideoIndexer/accounts/read", + "display": { + "provider": "Microsoft Azure Video Indexer", + "resource": "Account", + "operation": "Read accounts", + "description": "Read accounts" + } + }, + { + "name": "Microsoft.VideoIndexer/accounts/write", + "display": { + "provider": "Microsoft Azure Video Indexer", + "resource": "Account", + "operation": "Update accounts", + "description": "Update accounts" + } + }, + { + "name": "Microsoft.VideoIndexer/accounts/delete", + "display": { + "provider": "Microsoft Azure Video Indexer", + "resource": "Account", + "operation": "Delete accounts", + "description": "Delete accounts" + } + } + ] + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json new file mode 100644 index 000000000000..0f5d2c0f7cfd --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json @@ -0,0 +1,1281 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-04-13-preview", + "title": "vi", + "description": "Microsoft Azure Video Indexer" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.VideoIndexer/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Azure Video Indexer provider operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "List operations": { + "$ref": "./examples/ViOperationsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/checkNameAvailability": { + "post": { + "tags": [ + "NameAvailability" + ], + "operationId": "Accounts_CheckNameAvailability", + "description": "Checks that the Video Indexer account name is valid and is not already in use.", + "x-ms-examples": { + "Check free account name availability": { + "$ref": "./examples/ViAccountCheckNameAvailabilityFree.json" + }, + "Check taken account name availability": { + "$ref": "./examples/ViAccountCheckNameAvailabilityTaken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "checkNameAvailabilityParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AccountCheckNameAvailabilityParameters" + }, + "description": "The name of the Video Indexer account. Name must be unique globally" + } + ], + "responses": { + "200": { + "description": "OK - Operation to check the Video Indexer account name availability was successful. Ok does not indicate the name is available, the body of the response does.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.VideoIndexer/accounts": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_List", + "description": "List all Azure Video Indexer accounts available under the subscription", + "x-ms-examples": { + "List accounts": { + "$ref": "./examples/ViAccountsList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_ListByResourceGroup", + "description": "List all Azure Video Indexer accounts available under the resource group", + "x-ms-examples": { + "List accounts by resource group": { + "$ref": "./examples/ViAccountsListByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AccountList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName}": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_Get", + "description": "Gets the properties of an Azure Video Indexer account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Azure Video Indexer account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get account": { + "$ref": "./examples/ViAccountGet.json" + } + } + }, + "patch": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_Update", + "x-ms-long-running-operation": false, + "description": "Updates the properties of an existing Azure Video Indexer account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The parameters to provide for the current Azure Video Indexer account.", + "schema": { + "$ref": "#/definitions/AccountPatch" + } + } + ], + "responses": { + "200": { + "description": "The resource was updated successfully.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Patch example #1": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch1.json" + }, + "Patch example #2": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch2.json" + }, + "Patch example #3": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch3.json" + }, + "Patch example #4": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch4.json" + }, + "Patch example #5": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch5.json" + }, + "Patch example #6": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch6.json" + }, + "Patch example #7": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch7.json" + }, + "Patch example #8": { + "$ref": "./examples/ViAccountPatch/ViAccountPatch8.json" + } + } + }, + "put": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_CreateOrUpdate", + "description": "Creates or updates an Azure Video Indexer account.", + "x-ms-long-running-operation": false, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The parameters to provide for the Azure Video Indexer account.", + "schema": { + "$ref": "#/definitions/Account" + } + } + ], + "responses": { + "200": { + "description": "The resource was successfully updated.", + "schema": { + "$ref": "#/definitions/Account" + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "409": { + "description": "Conflict", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Put example #1": { + "$ref": "./examples/ViAccountPut/ViAccountPut1.json" + }, + "Put example #2": { + "$ref": "./examples/ViAccountPut/ViAccountPut2.json" + }, + "Put example #3": { + "$ref": "./examples/ViAccountPut/ViAccountPut3.json" + }, + "Put example #4": { + "$ref": "./examples/ViAccountPut/ViAccountPut4.json" + }, + "Put example #5": { + "$ref": "./examples/ViAccountPut/ViAccountPut5.json" + }, + "Put example #6": { + "$ref": "./examples/ViAccountPut/ViAccountPut6.json" + }, + "Put example #7": { + "$ref": "./examples/ViAccountPut/ViAccountPut7.json" + }, + "Put example #8": { + "$ref": "./examples/ViAccountPut/ViAccountPut8.json" + }, + "Put example #9": { + "$ref": "./examples/ViAccountPut/ViAccountPut9.json" + }, + "Put example #10": { + "$ref": "./examples/ViAccountPut/ViAccountPut10.json" + } + } + }, + "delete": { + "tags": [ + "Accounts" + ], + "operationId": "Accounts_Delete", + "description": "Delete an Azure Video Indexer account.", + "x-ms-long-running-operation": false, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Azure Video Indexer account was successfully deleted." + }, + "202": { + "description": "The Azure Video Indexer account will be deleted asynchronously." + }, + "204": { + "description": "The Azure Video Indexer account does not exist." + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete account": { + "$ref": "./examples/ViAccountDelete.json" + } + } + } + }, + "/providers/Microsoft.VideoIndexer/locations/{location}/userClassicAccounts": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "UserClassicAccounts_List", + "description": "Lists all Azure Video Indexer classic accounts", + "x-ms-examples": { + "List accounts": { + "$ref": "./examples/ViListUserClassicAccounts.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UserClassicAccountList" + } + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.VideoIndexer/locations/{location}/classicAccounts/{accountName}": { + "get": { + "tags": [ + "Accounts" + ], + "operationId": "ClassicAccounts_GetDetails", + "description": "Gets the properties of an Azure Video Indexer Classic account.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/LocationParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + } + ], + "responses": { + "200": { + "description": "The Azure Video Indexer account properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/ClassicAccount" + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "401": { + "description": "User Not Allowed", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get account": { + "$ref": "./examples/ViClassicAccounts.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName}/generateAccessToken": { + "post": { + "tags": [ + "AccessToken" + ], + "operationId": "Generate_AccessToken", + "description": "Generate an Azure Video Indexer access token.", + "x-ms-examples": { + "Generate accessToken for video contributor #1": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json" + }, + "Generate accessToken for video contributor #2": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json" + }, + "Generate accessToken for video reader #1": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json" + }, + "Generate accessToken for video reader #2": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json" + }, + "Generate accessToken for project contributor #1": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json" + }, + "Generate accessToken for project contributor #2": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json" + }, + "Generate accessToken for project reader #1": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json" + }, + "Generate accessToken for project reader #2": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json" + }, + "Generate accessToken for account contributor": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json" + }, + "Generate accessToken for account reader": { + "$ref": "./examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "x-ms-client-flatten": true, + "description": "The parameters for generating access token", + "schema": { + "$ref": "#/definitions/GenerateAccessTokenParameters" + } + } + ], + "responses": { + "200": { + "description": "The Azure Video Indexer account's access token properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/AccessToken" + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "409": { + "description": "Conflict", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Tags": { + "type": "object", + "description": "Resource tags", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags" + } + } + }, + "Account": { + "description": "An Azure Video Indexer account.", + "type": "object", + "properties": { + "properties": { + "description": "List of account properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccountPropertiesForPutRequest" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + }, + "systemData": { + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "AccountPatch": { + "type": "object", + "description": "Azure Video Indexer account", + "properties": { + "properties": { + "description": "List of account properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AccountPropertiesForPatchRequest" + }, + "identity": { + "$ref": "../../../../../common-types/resource-management/v3/managedidentity.json#/definitions/ManagedServiceIdentity" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Tags" + } + ] + }, + "AccountPropertiesForPutRequest": { + "description": "Azure Video Indexer account properties", + "type": "object", + "properties": { + "tenantId": { + "description": "The account's tenant id", + "type": "string", + "readOnly": true, + "example": "2b9bcf6d-39d5-460a-a6bb-7b40b7ccf139" + }, + "accountId": { + "description": "The account's data-plane ID. This can be set only when connecting an existing classic account", + "type": "string", + "default": "00000000-0000-0000-0000-000000000000", + "example": "3575690b-a569-449c-ab7b-11020f948f76" + }, + "accountName": { + "description": "The account's name", + "type": "string", + "readOnly": true, + "example": "contoso-videoAnalyzer" + }, + "mediaServices": { + "description": "The media services details", + "type": "object", + "$ref": "#/definitions/MediaServicesForPutRequest" + }, + "totalSecondsIndexed": { + "description": "An integer representing the total seconds that have been indexed on the account", + "type": "integer", + "format": "int32", + "readOnly": true + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Gets the status of the account at the time the operation was called.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning", + "Deleting" + ], + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true + } + } + } + }, + "AccountPropertiesForPatchRequest": { + "description": "Azure Video Indexer account properties", + "type": "object", + "properties": { + "tenantId": { + "description": "The account's tenant id", + "type": "string", + "readOnly": true, + "example": "2b9bcf6d-39d5-460a-a6bb-7b40b7ccf139" + }, + "accountId": { + "description": "The account's data-plane ID", + "readOnly": true, + "type": "string", + "example": "3575690b-a569-449c-ab7b-11020f948f76" + }, + "mediaServices": { + "description": "The media services details", + "type": "object", + "$ref": "#/definitions/MediaServicesForPatchRequest" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Gets the status of the account at the time the operation was called.", + "enum": [ + "Succeeded", + "Failed", + "Canceled", + "Accepted", + "Provisioning", + "Deleting" + ], + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true + } + } + } + }, + "AccountList": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Account" + }, + "description": "List of accounts and their properties." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "example": "https://management.azure.com/{accountsOperation}?api-version={version}&%24skiptoken={token}" + } + }, + "description": "The list operation response, that contains the data pools and their properties.", + "type": "object" + }, + "GenerateAccessTokenParameters": { + "description": "Access token generation request's parameters", + "type": "object", + "required": [ + "permissionType", + "scope" + ], + "properties": { + "permissionType": { + "type": "string", + "description": "The requested permission", + "enum": [ + "Contributor", + "Reader" + ], + "x-ms-enum": { + "name": "permissionType", + "modelAsString": true + } + }, + "scope": { + "type": "string", + "description": "The requested media type", + "enum": [ + "Video", + "Account", + "Project" + ], + "x-ms-enum": { + "name": "scope", + "modelAsString": true + } + }, + "videoId": { + "description": "The video ID", + "type": "string", + "example": "07ec9e38d4" + }, + "projectId": { + "description": "The project ID", + "type": "string" + } + } + }, + "MediaServicesForPutRequest": { + "description": "The media services details", + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "description": "The media services resource id", + "example": "/subscriptions/xxx/resourceGroups/contoso-videoAnalyzer-rg/providers/Microsoft.Media/mediaservices/contoso-videoAnalyzer-ms" + }, + "userAssignedIdentity": { + "type": "string", + "description": "The user assigned identity to be used to grant permissions", + "example": "/subscriptions/xxx/resourceGroups/contoso-videoAnalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoAnalyzer-mi" + } + } + }, + "MediaServicesForPatchRequest": { + "description": "The media services details", + "type": "object", + "properties": { + "userAssignedIdentity": { + "type": "string", + "description": "The user assigned identity to be used to grant permissions", + "example": "/subscriptions/xxx/resourceGroups/contoso-videoAnalyzer-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/contoso-videoAnalyzer-mi" + } + } + }, + "AccessToken": { + "description": "Azure Video Indexer access token.", + "type": "object", + "properties": { + "accessToken": { + "type": "string", + "readOnly": true, + "description": "The access token.", + "x-ms-secret": true, + "example": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJPbmxpbmUgSldUIEJ1aWxkZXIiLCJpYXQiOjE2MjI0NDc3MzMsImV4cCI6MTY1Mzk4MzczMywiYXVkIjoid3d3LmV4YW1wbGUuY29tIiwic3ViIjoianJvY2tldEBleGFtcGxlLmNvbSIsIkdpdmVuTmFtZSI6IkpvaG5ueSIsIlN1cm5hbWUiOiJSb2NrZXQiLCJFbWFpbCI6Impyb2NrZXRAZXhhbXBsZS5jb20iLCJSb2xlIjpbIk1hbmFnZXIiLCJQcm9qZWN0IEFkbWluaXN0cmF0b3IiXX0" + } + } + }, + "UserClassicAccountList": { + "properties": { + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ClassicAccountSlim" + }, + "description": "List of classic account names and their location." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any.", + "example": "https://management.azure.com/{accountsOperation}?api-version={version}&%24skiptoken={token}" + } + }, + "description": "The list of user classic accounts.", + "type": "object" + }, + "ClassicAccountSlim": { + "description": "An Azure Video Indexer classic account.", + "type": "object", + "properties": { + "name": { + "description": "The account's name", + "type": "string", + "readOnly": true, + "example": "contoso-videoanalyzer" + }, + "location": { + "description": "The account's location", + "type": "string", + "readOnly": true, + "example": "westus" + }, + "id": { + "description": "The account's id", + "type": "string", + "readOnly": true, + "example": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574" + } + } + }, + "ClassicAccount": { + "description": "An Azure Video Indexer classic account.", + "type": "object", + "properties": { + "name": { + "description": "The account's name", + "type": "string", + "readOnly": true, + "example": "contoso-videoanalyzer" + }, + "location": { + "description": "The account's location", + "type": "string", + "example": "westus" + }, + "id": { + "description": "The account's id", + "type": "string", + "readOnly": true, + "example": "462af7c5-d1f6-4b91-86e3-8bc5e8a61574" + }, + "properties": { + "description": "List of classic account properties", + "type": "object", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClassicAccountProperties" + } + } + }, + "ClassicAccountProperties": { + "description": "Azure Video Indexer classic account properties", + "type": "object", + "properties": { + "mediaServices": { + "description": "The media services details", + "type": "object", + "$ref": "#/definitions/ClassicAccountMediaServices" + } + } + }, + "ClassicAccountMediaServices": { + "description": "Azure Video Indexer classic account properties", + "type": "object", + "properties": { + "aadApplicationId": { + "type": "string", + "description": "The aad application id", + "example": "912f96dc-1ed3-4d7d-aa67-0adef4bb68ad" + }, + "aadTenantId": { + "type": "string", + "description": "The aad tenant id", + "example": "72f988bf-86f1-41ag-91ab-2d7cd061db47" + }, + "connected": { + "type": "boolean", + "description": "Represents wether the media services is connected or not" + }, + "eventGridProviderRegistered": { + "type": "boolean", + "description": "Represents if the media services event grid is connected or not" + }, + "name": { + "type": "string", + "description": "The media services name", + "example": "contosoVideoanalyzerMediaServices" + }, + "resourceGroup": { + "type": "string", + "description": "The resource group that the media services belong to", + "example": "contoso-videoanalyzer-rg" + }, + "streamingEndpointStarted": { + "type": "boolean", + "description": "Represents wether the media services streaming endpoint has started" + }, + "subscriptionId": { + "type": "string", + "description": "The media services subscriptionId", + "example": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" + } + } + }, + "Operation": { + "description": "Operation detail payload", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "readOnly": true, + "type": "string", + "example": "Microsoft.VideoIndexer/accounts/read" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "readOnly": true, + "type": "boolean", + "example": false + }, + "actionType": { + "description": "Indicates the action type.", + "readOnly": true, + "type": "string", + "example": "Internal" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "readOnly": true, + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "readOnly": true, + "type": "string", + "example": "user" + } + } + }, + "OperationDisplay": { + "description": "Operation display payload", + "type": "object", + "properties": { + "provider": { + "description": "Resource provider of the operation", + "readOnly": true, + "type": "string", + "example": "Microsoft Azure Video Indexer" + }, + "resource": { + "description": "Resource of the operation", + "readOnly": true, + "type": "string", + "example": "accounts" + }, + "operation": { + "description": "Localized friendly name for the operation", + "readOnly": true, + "type": "string", + "example": "Read accounts" + }, + "description": { + "description": "Localized friendly description for the operation", + "readOnly": true, + "type": "string", + "example": "Read accounts details" + } + } + }, + "OperationListResult": { + "description": "Available operations of the service.", + "type": "object", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of operations supported by the Resource Provider." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "URL to get the next set of operation list results if there are any.", + "example": "https://management.azure.com/{operation}?api-version={version}&%24skiptoken={token}" + } + } + }, + "ErrorResponse": { + "description": "Error response.", + "type": "object", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "type": "object", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "readOnly": true + } + } + }, + "AccountCheckNameAvailabilityParameters": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The VideoIndexer account name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.VideoIndexer/accounts" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": true + }, + "description": "The type of resource, Microsoft.VideoIndexer/accounts" + } + }, + "required": [ + "name", + "type" + ], + "description": "The parameters used to check the availability of the Video Indexer account name." + }, + "CheckNameAvailabilityResult": { + "type": "object", + "properties": { + "nameAvailable": { + "readOnly": true, + "type": "boolean", + "description": "Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken." + }, + "reason": { + "readOnly": true, + "type": "string", + "description": "Gets the reason that a Video Indexer account name could not be used. The Reason element is only returned if NameAvailable is false.", + "enum": [ + "AlreadyExists" + ], + "x-ms-enum": { + "name": "Reason", + "modelAsString": true + } + }, + "message": { + "readOnly": true, + "type": "string", + "description": "Gets an error message explaining the Reason value in more detail." + } + }, + "description": "The CheckNameAvailability operation response." + } + }, + "parameters": { + "AccountNameParameter": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure Video Indexer account.", + "pattern": "^[A-Za-z0-9-]+$", + "maxLength": 50, + "minLength": 3, + "x-ms-parameter-location": "method" + } + } +} From 23c60f190ec44c7aaf71471bff11fb5c2774c8e8 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Wed, 20 Jul 2022 11:41:36 +0300 Subject: [PATCH 2/7] Changed api version in examples and vi.json --- .../examples/ViAccountCheckNameAvailabilityFree.json | 2 +- .../examples/ViAccountCheckNameAvailabilityTaken.json | 2 +- .../preview/2022-07-20-preview/examples/ViAccountDelete.json | 2 +- .../preview/2022-07-20-preview/examples/ViAccountGet.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch1.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch2.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch3.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch4.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch5.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch6.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch7.json | 2 +- .../examples/ViAccountPatch/ViAccountPatch8.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json | 2 +- .../examples/ViAccountPut/ViAccountPut10.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json | 2 +- .../2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json | 2 +- .../preview/2022-07-20-preview/examples/ViAccountsList.json | 2 +- .../examples/ViAccountsListByResourceGroup.json | 2 +- .../preview/2022-07-20-preview/examples/ViClassicAccounts.json | 2 +- .../ViGenerateAccountContributerAccessToken.json | 2 +- .../ViGenerateAccountReaderAccessToken.json | 2 +- .../ViGenerateProjectContributerAccessToken1.json | 2 +- .../ViGenerateProjectContributerAccessToken2.json | 2 +- .../ViGenerateProjectReaderAccessToken1.json | 2 +- .../ViGenerateProjectReaderAccessToken2.json | 2 +- .../ViGenerateVideoContributerAccessToken1.json | 2 +- .../ViGenerateVideoContributerAccessToken2.json | 2 +- .../ViGenerateVideoReaderAccessToken1.json | 2 +- .../ViGenerateVideoReaderAccessToken2.json | 2 +- .../2022-07-20-preview/examples/ViListUserClassicAccounts.json | 2 +- .../preview/2022-07-20-preview/examples/ViOperationsList.json | 2 +- .../Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json | 2 +- 38 files changed, 38 insertions(+), 38 deletions(-) diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json index d37c37f68f03..16b519f27e21 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityFree.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e", "checkNameAvailabilityParameters": { "name": "vi1", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json index 01530838dda4..4c152d77875e 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountCheckNameAvailabilityTaken.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e", "checkNameAvailabilityParameters": { "name": "vi1", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json index 0347c8f34e6c..abb99dff8d22 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountDelete.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contoso-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3" }, "responses": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json index c10e82526516..ab2b42bf5ed7 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountGet.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contoso-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" }, "responses": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json index c97a13ebc0ec..efc9edfb33c1 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch1.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "properties": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json index 3434f55a8f5b..d364e6476e86 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch2.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "properties": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json index 22c61e5bfb50..6a686cd61692 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch3.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "properties": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json index 37f343df5682..5e59e737bccf 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch4.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "properties": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json index fc74612f1b8a..74effe0d2332 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch5.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "properties": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json index a9421230615d..c1713de7f9b6 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch6.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": {} }, diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json index 606785a9055f..f2ff8a3e2635 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch7.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "identity": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json index dd17d1e15714..cb01262c5e16 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPatch/ViAccountPatch8.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "properties": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json index 8f99f95e0bf1..1cb6c0cdf103 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut1.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json index c90a38eae137..68badf97a720 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut10.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json index ee289925a17d..aeb8b8c2a0e0 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut2.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json index 9523725194be..48bc37cfa3eb 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut3.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json index 11cb03f84170..e8ecb05046a6 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut4.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json index 750329ee1cf7..639f8808a334 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut5.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json index c6279b0bb4be..80e618f85b8a 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut6.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json index 2d69b2014b4b..352e52ff170c 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut7.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json index f7ce3315fbd7..6c3013e47066 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut8.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "location": "NorthEurope", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json index ac8469e09a61..4c1aeba8b6c1 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountPut/ViAccountPut9.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": {} }, diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json index fa8b73a455da..8294ac7b507e 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" }, "responses": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json index fba3f7c55cb3..4ffbc4d283bc 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViAccountsListByResourceGroup.json @@ -1,7 +1,7 @@ { "parameters": { "resourceGroupName": "contoso-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e" }, "responses": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json index 2ee3cd2dda2a..ec7b71ef34ad 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViClassicAccounts.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "location": "NorthEurope", "accountName": "contosto-videoanalyzer" }, diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json index 430e2e2c1196..908bb1c4939b 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountContributerAccessToken.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Contributor", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json index bf4fb742dcd5..259989c7d8bc 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateAccountReaderAccessToken.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Reader", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json index 6d6f117361ac..ce96c4f17bb7 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken1.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Contributor", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json index c3ca3e6c9359..225ec43073aa 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectContributerAccessToken2.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Contributor", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json index 206df5933304..72eb1a59ac6c 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken1.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Reader", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json index 821c5e401183..4058d4dbfc16 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateProjectReaderAccessToken2.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Reader", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json index 9f1e235969bb..a983b224d16e 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken1.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Contributor", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json index b2ccc0e13825..878da5322e43 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoContributerAccessToken2.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Contributor", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json index f6d1785f5b6b..3544a7268c5f 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken1.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Reader", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json index 09fe137c5466..a4edad2be837 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateAccessToken/ViGenerateVideoReaderAccessToken2.json @@ -2,7 +2,7 @@ "parameters": { "accountName": "contosto-videoanalyzer", "resourceGroupName": "contosto-videoanalyzer-rg", - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { "permissionType": "Reader", diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json index 0aec04fa8f0b..6ab67c5d197a 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViListUserClassicAccounts.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-13-preview", + "api-version": "2022-07-20-preview", "location": "NorthEurope" }, "responses": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json index 766f938e0956..7cb0063f446d 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViOperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2022-04-13-preview" + "api-version": "2022-07-20-preview" }, "responses": { "200": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json index 0f5d2c0f7cfd..e199d37e98f0 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2022-04-13-preview", + "version": "2022-07-20-preview", "title": "vi", "description": "Microsoft Azure Video Indexer" }, From 2f0dca409c4c3dbf16be8c3d6b0739266db19c5f Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Wed, 20 Jul 2022 11:46:44 +0300 Subject: [PATCH 3/7] Version update in readme --- specification/vi/resource-manager/readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/vi/resource-manager/readme.md b/specification/vi/resource-manager/readme.md index adfcceb463d7..29b1aba0c829 100644 --- a/specification/vi/resource-manager/readme.md +++ b/specification/vi/resource-manager/readme.md @@ -27,6 +27,7 @@ directive: - Microsoft.VideoIndexer/preview/2021-10-27-preview/vi.json - Microsoft.VideoIndexer/preview/2021-11-10-preview/vi.json - Microsoft.VideoIndexer/preview/2022-04-13-preview/vi.json + - Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json - Microsoft.VideoIndexer/stable/2022-08-01/vi.json where: @@ -57,6 +58,15 @@ version-with-underscores: 2022_08_01 input-file: - Microsoft.VideoIndexer/stable/2022-08-01/vi.json ``` +### Tag: package-2022-07-20-preview + +These settings apply only when `--tag=2022-07-20-preview` is specified on the command line. + +```yaml $(tag) == 'package-2022-07-20-preview' +version-with-underscores: 2022-07-20-preview +input-file: + - Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json +``` ### Tag: package-2022-04-13-preview These settings apply only when `--tag=2022-04-13-preview` is specified on the command line. From 7c39f38c73f1d65337f283451294df97a4f6b182 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Thu, 21 Jul 2022 16:04:58 +0300 Subject: [PATCH 4/7] Add new API to spec --- ...ateAccountRestrictedViewerAccessToken.json | 45 +++++++ ...teProjectRestrictedViewerAccessToken1.json | 51 ++++++++ ...teProjectRestrictedViewerAccessToken2.json | 51 ++++++++ ...rateVideoRestrictedViewerAccessToken1.json | 51 ++++++++ ...rateVideoRestrictedViewerAccessToken2.json | 51 ++++++++ .../preview/2022-07-20-preview/vi.json | 122 ++++++++++++++++++ 6 files changed, 371 insertions(+) create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json create mode 100644 specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json new file mode 100644 index 000000000000..2c74a4fa1fff --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-07-20-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "scope": "Account" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": {} + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json new file mode 100644 index 000000000000..7cfbd9d0f064 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-07-20-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "scope": "Project", + "projectId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "BREAKDOWN_NOT_FOUND", + "message": "Video/Project '07ec9e38d4' was not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json new file mode 100644 index 000000000000..c6dd3b617b17 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-07-20-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "scope": "Project", + "projectId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json new file mode 100644 index 000000000000..39de7ea647e6 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-07-20-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "scope": "Video", + "videoId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "BREAKDOWN_NOT_FOUND", + "message": "Video/Project '07ec9e38d4' was not found" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json new file mode 100644 index 000000000000..e0ad148c2e49 --- /dev/null +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "accountName": "contosto-videoanalyzer", + "resourceGroupName": "contosto-videoanalyzer-rg", + "api-version": "2022-07-20-preview", + "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", + "parameters": { + "scope": "Video", + "videoId": "07ec9e38d4" + } + }, + "responses": { + "200": { + "body": { + "accessToken": "" + } + }, + "400": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + } + } + }, + "404": { + "body": { + "error": { + "code": "INVALID_INPUT", + "message": "Playlist '07ec9e38d4' does not belong to account '74h866ca-f74f-7963-a926-4712f5bc0123'. Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'" + } + } + }, + "409": { + "body": { + "error": { + "code": "ALREADY_EXISTS", + "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + } + } + }, + "500": { + "body": { + "error": { + "code": "GENERAL", + "message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'." + } + } + } + } +} diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json index e199d37e98f0..5af1fc797aa0 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json @@ -705,6 +705,97 @@ } } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName}/generateRestrictedViewerAccessToken": { + "post": { + "tags": [ + "AccessToken" + ], + "operationId": "Generate_RestrictedViewerAccessToken", + "description": "Generate an Azure Video Indexer access token.", + "x-ms-examples": { + "Generate accessToken for video restricted viewer #1": { + "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json" + }, + "Generate accessToken for video restricted viewer #2": { + "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json" + }, + "Generate accessToken for project restricted viewer #1": { + "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json" + }, + "Generate accessToken for project restricted viewer #2": { + "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json" + }, + "Generate accessToken for account restricted viewer": { + "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AccountNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "x-ms-client-flatten": true, + "description": "The parameters for generating access token", + "schema": { + "$ref": "#/definitions/GenerateRestrictedViewerAccessTokenParameters" + } + } + ], + "responses": { + "200": { + "description": "The Azure Video Indexer account's access token properties were retrieved successfully.", + "schema": { + "$ref": "#/definitions/AccessToken" + } + }, + "400": { + "description": "Bad Request.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "409": { + "description": "Conflict", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "500": { + "description": "Internal Server Error", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -926,6 +1017,37 @@ } } }, + "GenerateRestrictedViewerAccessTokenParameters": { + "description": "Restricted viewer access token generation request's parameters", + "type": "object", + "required": [ + "scope" + ], + "properties": { + "scope": { + "type": "string", + "description": "The requested media type", + "enum": [ + "Video", + "Account", + "Project" + ], + "x-ms-enum": { + "name": "scope", + "modelAsString": true + } + }, + "videoId": { + "description": "The video ID", + "type": "string", + "example": "07ec9e38d4" + }, + "projectId": { + "description": "The project ID", + "type": "string" + } + } + }, "MediaServicesForPutRequest": { "description": "The media services details", "type": "object", From 616c7c0d3b79c0e3ab01f8f5a52e52141eae6613 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Sun, 7 Aug 2022 13:51:37 +0300 Subject: [PATCH 5/7] Remove 409, refine examples --- ...ateAccountRestrictedViewerAccessToken.json | 23 ++----------------- ...teProjectRestrictedViewerAccessToken1.json | 16 ++++--------- ...teProjectRestrictedViewerAccessToken2.json | 14 +++-------- ...rateVideoRestrictedViewerAccessToken1.json | 16 ++++--------- ...rateVideoRestrictedViewerAccessToken2.json | 14 +++-------- .../preview/2022-07-20-preview/vi.json | 21 ++++++----------- 6 files changed, 23 insertions(+), 81 deletions(-) diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json index 2c74a4fa1fff..36c0121118a5 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json @@ -1,7 +1,7 @@ { "parameters": { - "accountName": "contosto-videoanalyzer", - "resourceGroupName": "contosto-videoanalyzer-rg", + "accountName": "contosto-azurevideoindexer", + "resourceGroupName": "contosto-azurevideoindexer-rg", "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { @@ -14,25 +14,6 @@ "accessToken": "" } }, - "400": { - "body": { - "error": { - "code": "INVALID_INPUT", - "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." - } - } - }, - "404": { - "body": {} - }, - "409": { - "body": { - "error": { - "code": "ALREADY_EXISTS", - "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" - } - } - }, "500": { "body": { "error": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json index 7cfbd9d0f064..1c2b5a94fd26 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json @@ -1,7 +1,7 @@ { "parameters": { - "accountName": "contosto-videoanalyzer", - "resourceGroupName": "contosto-videoanalyzer-rg", + "accountName": "contosto-azurevideoindexer", + "resourceGroupName": "contosto-azurevideoindexer-rg", "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { @@ -19,7 +19,7 @@ "body": { "error": { "code": "INVALID_INPUT", - "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-videoanalyzer' not found." } } }, @@ -27,15 +27,7 @@ "body": { "error": { "code": "BREAKDOWN_NOT_FOUND", - "message": "Video/Project '07ec9e38d4' was not found" - } - } - }, - "409": { - "body": { - "error": { - "code": "ALREADY_EXISTS", - "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + "message": "Project '07ec9e38d4' was not found. Trace id: 'c30195f8-5c49-4609-bd73-0d7d166559f7'." } } }, diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json index c6dd3b617b17..c043c5f63ad2 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json @@ -1,7 +1,7 @@ { "parameters": { - "accountName": "contosto-videoanalyzer", - "resourceGroupName": "contosto-videoanalyzer-rg", + "accountName": "contosto-azurevideoindexer", + "resourceGroupName": "contosto-azurevideoindexer-rg", "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { @@ -19,7 +19,7 @@ "body": { "error": { "code": "INVALID_INPUT", - "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-azurevideoindexer' not found." } } }, @@ -31,14 +31,6 @@ } } }, - "409": { - "body": { - "error": { - "code": "ALREADY_EXISTS", - "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" - } - } - }, "500": { "body": { "error": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json index 39de7ea647e6..ac7834ff7df4 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json @@ -1,7 +1,7 @@ { "parameters": { - "accountName": "contosto-videoanalyzer", - "resourceGroupName": "contosto-videoanalyzer-rg", + "accountName": "contosto-azurevideoindexer", + "resourceGroupName": "contosto-azurevideoindexer-rg", "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { @@ -19,7 +19,7 @@ "body": { "error": { "code": "INVALID_INPUT", - "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/contosto-azurevideoindexer' not found." } } }, @@ -27,15 +27,7 @@ "body": { "error": { "code": "BREAKDOWN_NOT_FOUND", - "message": "Video/Project '07ec9e38d4' was not found" - } - } - }, - "409": { - "body": { - "error": { - "code": "ALREADY_EXISTS", - "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" + "message": "Video '07ec9e38d4' was not found. Trace id: 'c30195f8-5c49-4609-bd73-0d7d166559f7'." } } }, diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json index e0ad148c2e49..e62e1e0de137 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json @@ -1,7 +1,7 @@ { "parameters": { - "accountName": "contosto-videoanalyzer", - "resourceGroupName": "contosto-videoanalyzer-rg", + "accountName": "contosto-azurevideoindexer", + "resourceGroupName": "contosto-azurevideoindexer-rg", "api-version": "2022-07-20-preview", "subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3", "parameters": { @@ -19,7 +19,7 @@ "body": { "error": { "code": "INVALID_INPUT", - "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-videoanalyzer-rg/providers/Microsoft.Contoso/accounts/contosto-videoanalyzer' not found." + "message": "Account '/subscriptions/b04775c3-63fa-40f3-9430-139d2e5522d3/resourceGroups/contosto-azurevideoindexer-rg/providers/Microsoft.VideoIndexer/accounts/contosto-azurevideoindexer' not found." } } }, @@ -31,14 +31,6 @@ } } }, - "409": { - "body": { - "error": { - "code": "ALREADY_EXISTS", - "message": "Account with '74f866ea-f74f-4103-a916-4742f8bc0009' already exists" - } - } - }, "500": { "body": { "error": { diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json index 5af1fc797aa0..fae419aec683 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json @@ -712,21 +712,21 @@ "AccessToken" ], "operationId": "Generate_RestrictedViewerAccessToken", - "description": "Generate an Azure Video Indexer access token.", + "description": "Generate an Azure Video Indexer restricted viewer access token.", "x-ms-examples": { - "Generate accessToken for video restricted viewer #1": { + "Generate restricted viewer accessToken for video #1": { "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken1.json" }, - "Generate accessToken for video restricted viewer #2": { + "Generate restricted viewer accessToken for video #2": { "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateVideoRestrictedViewerAccessToken2.json" }, - "Generate accessToken for project restricted viewer #1": { + "Generate restricted viewer accessToken for project #1": { "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken1.json" }, - "Generate accessToken for project restricted viewer #2": { + "Generate restricted viewer accessToken for project #2": { "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateProjectRestrictedViewerAccessToken2.json" }, - "Generate accessToken for account restricted viewer": { + "Generate restricted viewer accessToken for account": { "$ref": "./examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json" } }, @@ -747,7 +747,7 @@ "in": "body", "name": "parameters", "x-ms-client-flatten": true, - "description": "The parameters for generating access token", + "description": "The parameters for generating restricted viewer access token", "schema": { "$ref": "#/definitions/GenerateRestrictedViewerAccessTokenParameters" } @@ -774,13 +774,6 @@ "$ref": "#/definitions/ErrorResponse" } }, - "409": { - "description": "Conflict", - "x-ms-error-response": true, - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - }, "500": { "description": "Internal Server Error", "x-ms-error-response": true, From b968829c1799ee60c27ced52617659f4698aa1f6 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Mon, 8 Aug 2022 09:25:15 +0300 Subject: [PATCH 6/7] Fix version with underscores --- specification/vi/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/vi/resource-manager/readme.md b/specification/vi/resource-manager/readme.md index 29b1aba0c829..71928edfde9c 100644 --- a/specification/vi/resource-manager/readme.md +++ b/specification/vi/resource-manager/readme.md @@ -63,7 +63,7 @@ input-file: These settings apply only when `--tag=2022-07-20-preview` is specified on the command line. ```yaml $(tag) == 'package-2022-07-20-preview' -version-with-underscores: 2022-07-20-preview +version-with-underscores: 2022_07_20_preview input-file: - Microsoft.VideoIndexer/preview/2022-07-20-preview/vi.json ``` From fdf870b4e57463780573b27d5f48c077b0a1c267 Mon Sep 17 00:00:00 2001 From: "MIDDLEEAST\\barakkinarti" Date: Mon, 8 Aug 2022 09:56:42 +0300 Subject: [PATCH 7/7] Add missing status codes to example --- .../ViGenerateAccountRestrictedViewerAccessToken.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json index 36c0121118a5..3e2cee6a5f84 100644 --- a/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json +++ b/specification/vi/resource-manager/Microsoft.VideoIndexer/preview/2022-07-20-preview/examples/ViGenerateRestrictedViewerAccessToken/ViGenerateAccountRestrictedViewerAccessToken.json @@ -14,6 +14,12 @@ "accessToken": "" } }, + "400": { + "body": {} + }, + "404": { + "body": {} + }, "500": { "body": { "error": {