From d6902a340e68ae9b56c5a85b28df6d7d01872261 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 8 Nov 2023 11:03:16 +0000 Subject: [PATCH] CodeGen from PR 26571 in Azure/azure-rest-api-specs Merge f98ddbc197574d0014d489c540324bda139c0805 into 4816586e353f83f79e56789b171eb888054824f1 --- schemas/2023-11-01/Microsoft.Community.json | 258 ++++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 261 insertions(+) create mode 100644 schemas/2023-11-01/Microsoft.Community.json diff --git a/schemas/2023-11-01/Microsoft.Community.json b/schemas/2023-11-01/Microsoft.Community.json new file mode 100644 index 0000000000..9450584f27 --- /dev/null +++ b/schemas/2023-11-01/Microsoft.Community.json @@ -0,0 +1,258 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.Community.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Community", + "description": "Microsoft Community Resource Types", + "resourceDefinitions": { + "communityTrainings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-11-01" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{3,24}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Community Training Resource" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CommunityTrainingProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Details of the Community CommunityTraining." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource model definition representing SKU" + }, + "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.Community/communityTrainings" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.Community/communityTrainings" + } + }, + "definitions": { + "CommunityTrainingProperties": { + "type": "object", + "properties": { + "disasterRecoveryEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "To indicate whether the Community Training instance has Disaster Recovery enabled" + }, + "identityConfiguration": { + "oneOf": [ + { + "$ref": "#/definitions/IdentityConfigurationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Details of the Community CommunityTraining Identity Configuration" + }, + "portalAdminEmailAddress": { + "type": "string", + "description": "The email address of the portal admin" + }, + "portalName": { + "type": "string", + "description": "The portal name (website name) of the Community Training instance" + }, + "portalOwnerEmailAddress": { + "type": "string", + "description": "The email address of the portal owner. Will be used as the primary contact" + }, + "portalOwnerOrganizationName": { + "type": "string", + "description": "The organization name of the portal owner" + }, + "zoneRedundancyEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "To indicate whether the Community Training instance has Zone Redundancy enabled" + } + }, + "required": [ + "disasterRecoveryEnabled", + "identityConfiguration", + "portalAdminEmailAddress", + "portalName", + "portalOwnerEmailAddress", + "portalOwnerOrganizationName", + "zoneRedundancyEnabled" + ], + "description": "Details of the Community CommunityTraining." + }, + "IdentityConfigurationProperties": { + "type": "object", + "properties": { + "b2cAuthenticationPolicy": { + "type": "string", + "description": "The name of the authentication policy registered in ADB2C for the Community Training Resource" + }, + "b2cPasswordResetPolicy": { + "type": "string", + "description": "The name of the password reset policy registered in ADB2C for the Community Training Resource" + }, + "clientId": { + "type": "string", + "description": "The clientId of the application registered in the selected identity provider for the Community Training Resource" + }, + "clientSecret": { + "type": "string", + "format": "password", + "description": "The client secret of the application registered in the selected identity provider for the Community Training Resource" + }, + "customLoginParameters": { + "type": "string", + "description": "The custom login parameters for the Community Training Resource" + }, + "domainName": { + "type": "string", + "description": "The domain name of the selected identity provider for the Community Training Resource" + }, + "identityType": { + "type": "string", + "description": "The identity type of the Community Training Resource" + }, + "teamsEnabled": { + "oneOf": [ + { + "type": "boolean", + "default": false + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "To indicate whether the Community Training Resource has Teams enabled" + }, + "tenantId": { + "type": "string", + "description": "The tenantId of the selected identity provider for the Community Training Resource" + } + }, + "required": [ + "clientId", + "clientSecret", + "domainName", + "identityType", + "tenantId" + ], + "description": "Details of the Community CommunityTraining Identity Configuration" + }, + "Sku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted." + }, + "family": { + "type": "string", + "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here." + }, + "name": { + "type": "string", + "description": "The name of the SKU. Ex - P3. It is typically a letter+number code" + }, + "size": { + "type": "string", + "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. " + }, + "tier": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Free", + "Basic", + "Standard", + "Premium" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "required": [ + "name" + ], + "description": "The resource model definition representing SKU" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 8dffb56f1e..6ed882fcb4 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -6511,6 +6511,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2023-06-01-preview/Microsoft.Communication.json#/resourceDefinitions/emailServices_domains_suppressionLists_suppressionListAddresses" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-11-01/Microsoft.Community.json#/resourceDefinitions/communityTrainings" + }, { "$ref": "https://schema.management.azure.com/schemas/2015-06-15/Microsoft.Compute.Extensions.json#/resourceDefinitions/virtualMachines_extensions" },