Skip to content

Commit

Permalink
Feature/talshoham/add examples (#4730)
Browse files Browse the repository at this point in the history
* Add version 2021-09-01-preview

* New examples and api

* Try to fix prettier patch 6

* Fix prettier

* Fixes

* more fixes

* Remove model validation failing example

* sdfsdf

* sdfsdf

* sdfsdf

* sdfsdf

* Revert "sdfsdf"

This reverts commit 2b9a097c59d5ab1384830d9ed21eebe655ff5f17.

* sdfsd

* sdfsdf

* fdfs

* sfsdf

* sdfsdf

* sdfsdf

* sdfds

* sfdsf

* final

* final 2

* final 3

* final 22/09

* final2 09/22

* adding to patch request

Co-authored-by: Tamir Ben-Arie <tabenari@microsoft.com>
Co-authored-by: Uriel Atzmon <uratzmon@microsoft.com>
  • Loading branch information
3 people authored Sep 30, 2021
1 parent 3ac64f8 commit 6cd4332
Show file tree
Hide file tree
Showing 48 changed files with 3,679 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "586d4f48-8f08-4a4e-96b7-e1892d6dba9e",
"checkNameAvailabilityParameters": {
"name": "vi1",
"type": "Microsoft.VideoIndexer/accounts"
}
},
"responses": {
"200": {
"body": {
"nameAvailable": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"api-version": "2021-09-01-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"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"accountName": "contosto-videoanalyzer",
"resourceGroupName": "contoso-rg",
"api-version": "2021-09-01-preview",
"subscriptionId": "b04775c3-63fa-40f3-9430-139d2e5522d3"
},
"responses": {
"200": {},
"202": {},
"204": {},
"500": {
"body": {
"error": {
"code": "GENERAL",
"message": "Trace id: '9677927b-ae6b-496g-1df8-9ec3048b4bf2'."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"accountName": "contosto-videoanalyzer",
"resourceGroupName": "contoso-rg",
"api-version": "2021-09-01-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"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters": {
"accountName": "contosto-videoanalyzer",
"resourceGroupName": "contosto-videoanalyzer-rg",
"api-version": "2021-09-01-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"
},
"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'."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters": {
"accountName": "contosto-videoanalyzer",
"resourceGroupName": "contosto-videoanalyzer-rg",
"api-version": "2021-09-01-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"
},
"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'."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters": {
"accountName": "contosto-videoanalyzer",
"resourceGroupName": "contosto-videoanalyzer-rg",
"api-version": "2021-09-01-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"
},
"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'."
}
}
}
}
}
Loading

0 comments on commit 6cd4332

Please sign in to comment.