diff --git a/schemas/2024-01-01/Microsoft.VideoIndexer.json b/schemas/2024-01-01/Microsoft.VideoIndexer.json new file mode 100644 index 0000000000..897e555c90 --- /dev/null +++ b/schemas/2024-01-01/Microsoft.VideoIndexer.json @@ -0,0 +1,173 @@ +{ + "id": "https://schema.management.azure.com/schemas/2024-01-01/Microsoft.VideoIndexer.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.VideoIndexer", + "description": "Microsoft VideoIndexer Resource Types", + "resourceDefinitions": { + "accounts": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2024-01-01" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9-]+$", + "minLength": 3, + "maxLength": 50 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Azure Video Indexer account." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AccountPropertiesForPutRequest" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Azure Video Indexer account properties" + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.VideoIndexer/accounts" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.VideoIndexer/accounts" + } + }, + "definitions": { + "AccountPropertiesForPutRequest": { + "type": "object", + "properties": { + "accountId": { + "type": "string", + "default": "00000000-0000-0000-0000-000000000000", + "description": "The account's data-plane ID. This can be set only when connecting an existing classic account" + }, + "storageServices": { + "oneOf": [ + { + "$ref": "#/definitions/StorageServicesForPutRequest" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage services details" + } + }, + "description": "Azure Video Indexer account properties" + }, + "ManagedServiceIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests." + } + }, + "required": [ + "type" + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "StorageServicesForPutRequest": { + "type": "object", + "properties": { + "resourceId": { + "type": "string", + "format": "arm-id", + "description": "The storage services resource id" + }, + "userAssignedIdentity": { + "type": "string", + "format": "arm-id", + "description": "The user assigned identity to be used to grant permissions" + } + }, + "description": "The storage services details" + }, + "UserAssignedIdentity": { + "type": "object", + "properties": {}, + "description": "User assigned identity properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index d1d1403628..3fe7cf5533 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -37495,6 +37495,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-08-01/Microsoft.VideoIndexer.json#/resourceDefinitions/accounts" }, + { + "$ref": "https://schema.management.azure.com/schemas/2024-01-01/Microsoft.VideoIndexer.json#/resourceDefinitions/accounts" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-02-01-preview/Microsoft.VirtualMachineImages.json#/resourceDefinitions/imageTemplates" },