Skip to content

Commit

Permalink
CodeGen from PR 22354 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[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 <igorsolenov@microdoft.com>
  • Loading branch information
SDKAuto and Igor Solenov committed Feb 1, 2023
1 parent 8c0a811 commit 0d657cc
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 0 deletions.
195 changes: 195 additions & 0 deletions schemas/2023-01-31/Microsoft.ManagedIdentity.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
6 changes: 6 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 0d657cc

Please sign in to comment.