forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 1
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 26571 in Azure/azure-rest-api-specs
Merge f98ddbc197574d0014d489c540324bda139c0805 into ec238f30bd6d4a0681b691908fe00b54868467de
- Loading branch information
SDKAuto
committed
Nov 6, 2023
1 parent
793854b
commit e6a6a50
Showing
2 changed files
with
261 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,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" | ||
} | ||
} | ||
} |
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