forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 16566 in Azure/azure-rest-api-specs
Feature/uratzmon/2021 10 27 preview (#16566) * Add blockchain to latest profile * Add additional types * copy paste the last version * replace the version string where necessary * add examples files * add new APIs * fix checks #1 * Update specification/vi/resource-manager/readme.md * delete unnecessary part Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
- Loading branch information
1 parent
a8edf83
commit 5824507
Showing
2 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-10-27-preview/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": [ | ||
"2021-10-27-preview" | ||
] | ||
}, | ||
"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-z0-9]+(-[a-z0-9]+)*", | ||
"maxLength": 50 | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The name of the Azure Video Analyzer for Media account." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/AccountPropertiesForPutRequest" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Azure Video Analyzer for Media 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", | ||
"description": "The account's data-plane ID" | ||
}, | ||
"mediaServices": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/MediaServicesForPutRequest" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The media services details" | ||
} | ||
}, | ||
"description": "Azure Video Analyzer for Media 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)" | ||
}, | ||
"MediaServicesForPutRequest": { | ||
"type": "object", | ||
"properties": { | ||
"resourceId": { | ||
"type": "string", | ||
"description": "The media services resource id" | ||
}, | ||
"userAssignedIdentity": { | ||
"type": "string", | ||
"description": "The user assigned identity to be used to grant permissions" | ||
} | ||
}, | ||
"description": "The media services details" | ||
}, | ||
"UserAssignedIdentity": { | ||
"type": "object", | ||
"properties": {}, | ||
"description": "User assigned identity properties" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters