From 248471bc303f3d97e9e05cd180c1b0de76b804be Mon Sep 17 00:00:00 2001 From: serhangursoy-microsoft Date: Tue, 28 Jun 2022 13:42:27 +0000 Subject: [PATCH] Update Generated Types (single path: msi) Generate types for https://github.com/Azure/azure-rest-api-specs/tree/8ff7d5ef46f43875262110a4b2df7357bdf4369c --- .../Microsoft.ManagedIdentity.json | 38 ++-- .../2018-11-30/Microsoft.ManagedIdentity.json | 38 ++-- .../Microsoft.ManagedIdentity.json | 56 ++++++ .../Microsoft.ManagedIdentity.json | 179 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 15 ++ 5 files changed, 290 insertions(+), 36 deletions(-) create mode 100644 schemas/2021-09-30-preview/Microsoft.ManagedIdentity.json create mode 100644 schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json diff --git a/schemas/2015-08-31-preview/Microsoft.ManagedIdentity.json b/schemas/2015-08-31-preview/Microsoft.ManagedIdentity.json index 56a87a72a6..0474d27b07 100644 --- a/schemas/2015-08-31-preview/Microsoft.ManagedIdentity.json +++ b/schemas/2015-08-31-preview/Microsoft.ManagedIdentity.json @@ -7,16 +7,6 @@ "userAssignedIdentities": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "The name of the identity resource." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.ManagedIdentity/userAssignedIdentities" - ] - }, "apiVersion": { "type": "string", "enum": [ @@ -25,7 +15,11 @@ }, "location": { "type": "string", - "description": "The Azure region where the identity lives." + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the identity resource." }, "tags": { "oneOf": [ @@ -33,22 +27,30 @@ "type": "object", "additionalProperties": { "type": "string" - } + }, + "properties": {} }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags" + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.ManagedIdentity/userAssignedIdentities" + ] } }, "required": [ - "name", - "type", "apiVersion", - "location" + "location", + "name", + "type" ], "description": "Microsoft.ManagedIdentity/userAssignedIdentities" } - } -} \ No newline at end of file + }, + "definitions": {} +} \ No newline at end of file diff --git a/schemas/2018-11-30/Microsoft.ManagedIdentity.json b/schemas/2018-11-30/Microsoft.ManagedIdentity.json index 564a5d2e6c..d2a57be3c1 100644 --- a/schemas/2018-11-30/Microsoft.ManagedIdentity.json +++ b/schemas/2018-11-30/Microsoft.ManagedIdentity.json @@ -7,16 +7,6 @@ "userAssignedIdentities": { "type": "object", "properties": { - "name": { - "type": "string", - "description": "The name of the identity resource." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.ManagedIdentity/userAssignedIdentities" - ] - }, "apiVersion": { "type": "string", "enum": [ @@ -25,7 +15,11 @@ }, "location": { "type": "string", - "description": "The Azure region where the identity lives." + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the identity resource." }, "tags": { "oneOf": [ @@ -33,22 +27,30 @@ "type": "object", "additionalProperties": { "type": "string" - } + }, + "properties": {} }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Resource tags" + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.ManagedIdentity/userAssignedIdentities" + ] } }, "required": [ - "name", - "type", "apiVersion", - "location" + "location", + "name", + "type" ], "description": "Microsoft.ManagedIdentity/userAssignedIdentities" } - } -} \ No newline at end of file + }, + "definitions": {} +} \ No newline at end of file diff --git a/schemas/2021-09-30-preview/Microsoft.ManagedIdentity.json b/schemas/2021-09-30-preview/Microsoft.ManagedIdentity.json new file mode 100644 index 0000000000..7b933b7e9a --- /dev/null +++ b/schemas/2021-09-30-preview/Microsoft.ManagedIdentity.json @@ -0,0 +1,56 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-09-30-preview/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": [ + "2021-09-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the identity resource." + }, + "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" + } + }, + "definitions": {} +} \ No newline at end of file diff --git a/schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json b/schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json new file mode 100644 index 0000000000..18122f070b --- /dev/null +++ b/schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json @@ -0,0 +1,179 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-01-31-preview/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": [ + "2022-01-31-preview" + ] + }, + "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": [ + "2022-01-31-preview" + ] + }, + "name": { + "type": "string", + "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": [ + "2022-01-31-preview" + ] + }, + "name": { + "type": "string", + "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 07f8f29e01..05fd9add17 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -11353,6 +11353,21 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.Maintenance.json#/resourceDefinitions/maintenanceConfigurations" }, + { + "$ref": "https://schema.management.azure.com/schemas/2015-08-31-preview/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-11-30/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-09-30-preview/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-01-31-preview/Microsoft.ManagedIdentity.json#/resourceDefinitions/userAssignedIdentities_federatedIdentityCredentials" + }, { "$ref": "https://schema.management.azure.com/schemas/2019-06-01-preview/Microsoft.ManagedNetwork.json#/resourceDefinitions/managedNetworks" },