From 0d657cc404bb890e023dd3a1d6295fde174ee2ae Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 1 Feb 2023 01:47:08 +0000 Subject: [PATCH] CodeGen from PR 22354 in Azure/azure-rest-api-specs [Hub Generated] Publish private branch 'dev-msi-Microsoft.ManagedIdentity-2018-11-30' (#22354) * [MSI] Base stable api-version commit: '2023-01-31' is based on '2018-11-30' * [MSI] 2023-01-31 stable version * [MSI] 2023-01-31 stable version - Specification is updated based on PR comments * Update ManagedIdentity.json Comments are addressed * Update ManagedIdentity.json Comments are addressed --------- Co-authored-by: Igor Solenov --- .../2023-01-31/Microsoft.ManagedIdentity.json | 195 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 6 + 2 files changed, 201 insertions(+) create mode 100644 schemas/2023-01-31/Microsoft.ManagedIdentity.json diff --git a/schemas/2023-01-31/Microsoft.ManagedIdentity.json b/schemas/2023-01-31/Microsoft.ManagedIdentity.json new file mode 100644 index 0000000000..ba4e5db190 --- /dev/null +++ b/schemas/2023-01-31/Microsoft.ManagedIdentity.json @@ -0,0 +1,195 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-01-31/Microsoft.ManagedIdentity.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.ManagedIdentity", + "description": "Microsoft ManagedIdentity Resource Types", + "resourceDefinitions": { + "userAssignedIdentities": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-31" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the identity resource." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/userAssignedIdentities_federatedIdentityCredentials_childResource" + } + ] + } + }, + "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.ManagedIdentity/userAssignedIdentities" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "type" + ], + "description": "Microsoft.ManagedIdentity/userAssignedIdentities" + }, + "userAssignedIdentities_federatedIdentityCredentials": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-31" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{2,119}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the federated identity credential resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FederatedIdentityCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties associated with a federated identity credential." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials" + } + }, + "definitions": { + "FederatedIdentityCredentialProperties": { + "type": "object", + "properties": { + "audiences": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of audiences that can appear in the issued token." + }, + "issuer": { + "type": "string", + "format": "uri", + "description": "The URL of the issuer to be trusted." + }, + "subject": { + "type": "string", + "description": "The identifier of the external identity." + } + }, + "required": [ + "audiences", + "issuer", + "subject" + ], + "description": "The properties associated with a federated identity credential." + }, + "userAssignedIdentities_federatedIdentityCredentials_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-31" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{2,119}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the federated identity credential resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/FederatedIdentityCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties associated with a federated identity credential." + }, + "type": { + "type": "string", + "enum": [ + "federatedIdentityCredentials" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 9813044409..e4c3a7421e 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -14317,6 +14317,12 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities_federatedIdentityCredentials" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-31/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-31/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities_federatedIdentityCredentials" + }, { "$ref": "https://schema.management.azure.com/schemas/2019-06-01-preview/Microsoft.ManagedNetwork.json#/resourceDefinitions/managedNetworks" },