diff --git a/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json b/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json new file mode 100644 index 0000000000..9d416937c1 --- /dev/null +++ b/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json @@ -0,0 +1,1591 @@ +{ + "id": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.NotificationHubs", + "description": "Microsoft NotificationHubs Resource Types", + "resourceDefinitions": { + "namespaces": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*$", + "minLength": 1, + "maxLength": 50 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Namespace name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/NamespaceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Represents namespace properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/namespaces_notificationHubs_childResource" + }, + { + "$ref": "#/definitions/namespaces_authorizationRules_childResource" + }, + { + "$ref": "#/definitions/namespaces_privateEndpointConnections_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Sku description for a namespace" + }, + "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.NotificationHubs/namespaces" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "sku", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces" + }, + "namespaces_authorizationRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Deprecated - only for compatibility." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Authorization Rule Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SharedAccessAuthorizationRule properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deprecated - only for compatibility." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.NotificationHubs/namespaces/authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/authorizationRules" + }, + "namespaces_notificationHubs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$", + "minLength": 1, + "maxLength": 265 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Notification Hub name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/NotificationHubProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NotificationHub properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/namespaces_notificationHubs_authorizationRules_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Sku description for a namespace" + }, + "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.NotificationHubs/namespaces/notificationHubs" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/notificationHubs" + }, + "namespaces_notificationHubs_authorizationRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Deprecated - only for compatibility." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Authorization Rule Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SharedAccessAuthorizationRule properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deprecated - only for compatibility." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + }, + "namespaces_privateEndpointConnections": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$", + "minLength": 1, + "maxLength": 87 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Private Endpoint Connection Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Private Endpoint Connection properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + } + }, + "definitions": { + "AdmCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AdmCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub AdmCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub AdmCredential." + }, + "AdmCredentialProperties": { + "type": "object", + "properties": { + "authTokenUrl": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the URL of the authorization token." + }, + "clientId": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the client identifier." + }, + "clientSecret": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the credential secret access key." + } + }, + "required": [ + "authTokenUrl", + "clientId", + "clientSecret" + ], + "description": "Description of a NotificationHub AdmCredential." + }, + "ApnsCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ApnsCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub ApnsCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub ApnsCredential." + }, + "ApnsCredentialProperties": { + "type": "object", + "properties": { + "apnsCertificate": { + "type": "string", + "description": "Gets or sets the APNS certificate." + }, + "appId": { + "type": "string", + "description": "Gets or sets the issuer (iss) registered claim key, whose value is\r\nyour 10-character Team ID, obtained from your developer account" + }, + "appName": { + "type": "string", + "description": "Gets or sets the name of the application" + }, + "certificateKey": { + "type": "string", + "description": "Gets or sets the certificate key." + }, + "endpoint": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the endpoint of this credential." + }, + "keyId": { + "type": "string", + "description": "Gets or sets a 10-character key identifier (kid) key, obtained from\r\nyour developer account" + }, + "thumbprint": { + "type": "string", + "description": "Gets or sets the APNS certificate Thumbprint" + }, + "token": { + "type": "string", + "description": "Gets or sets provider Authentication Token, obtained through your\r\ndeveloper account" + } + }, + "required": [ + "endpoint" + ], + "description": "Description of a NotificationHub ApnsCredential." + }, + "BaiduCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/BaiduCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub BaiduCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub BaiduCredential." + }, + "BaiduCredentialProperties": { + "type": "object", + "properties": { + "baiduApiKey": { + "type": "string", + "minLength": 1, + "description": "Gets or sets baidu Api Key." + }, + "baiduEndPoint": { + "type": "string", + "minLength": 1, + "description": "Gets or sets baidu Endpoint." + }, + "baiduSecretKey": { + "type": "string", + "minLength": 1, + "description": "Gets or sets baidu Secret Key" + } + }, + "required": [ + "baiduApiKey", + "baiduEndPoint", + "baiduSecretKey" + ], + "description": "Description of a NotificationHub BaiduCredential." + }, + "BrowserCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/BrowserCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub BrowserCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub BrowserCredential." + }, + "BrowserCredentialProperties": { + "type": "object", + "properties": { + "subject": { + "type": "string", + "minLength": 1, + "description": "Gets or sets web push subject." + }, + "vapidPrivateKey": { + "type": "string", + "minLength": 1, + "description": "Gets or sets VAPID private key." + }, + "vapidPublicKey": { + "type": "string", + "minLength": 1, + "description": "Gets or sets VAPID public key." + } + }, + "required": [ + "subject", + "vapidPrivateKey", + "vapidPublicKey" + ], + "description": "Description of a NotificationHub BrowserCredential." + }, + "GcmCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/GcmCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub GcmCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub GcmCredential." + }, + "GcmCredentialProperties": { + "type": "object", + "properties": { + "gcmEndpoint": { + "type": "string", + "description": "Gets or sets the GCM endpoint." + }, + "googleApiKey": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the Google API key." + } + }, + "required": [ + "googleApiKey" + ], + "description": "Description of a NotificationHub GcmCredential." + }, + "IpRule": { + "type": "object", + "properties": { + "ipMask": { + "type": "string", + "minLength": 1, + "description": "IP mask." + }, + "rights": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Manage", + "Send", + "Listen" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of access rights." + } + }, + "required": [ + "ipMask", + "rights" + ], + "description": "A network authorization rule that filters traffic based on IP address." + }, + "MpnsCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MpnsCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub MpnsCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub MpnsCredential." + }, + "MpnsCredentialProperties": { + "type": "object", + "properties": { + "certificateKey": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the certificate key for this credential." + }, + "mpnsCertificate": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the MPNS certificate." + }, + "thumbprint": { + "type": "string", + "minLength": 1, + "description": "Gets or sets the MPNS certificate Thumbprint" + } + }, + "required": [ + "certificateKey", + "mpnsCertificate", + "thumbprint" + ], + "description": "Description of a NotificationHub MpnsCredential." + }, + "NamespaceProperties": { + "type": "object", + "properties": { + "dataCenter": { + "type": "string", + "description": "Deprecated." + }, + "namespaceType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Messaging", + "NotificationHub" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "networkAcls": { + "oneOf": [ + { + "$ref": "#/definitions/NetworkAcls" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A collection of network authorization rules." + }, + "pnsCredentials": { + "oneOf": [ + { + "$ref": "#/definitions/PnsCredentials" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "InProgress", + "Succeeded", + "Failed", + "Canceled", + "Pending", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "publicNetworkAccess": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "replicationRegion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Default", + "WestUs2", + "NorthEurope", + "AustraliaEast", + "BrazilSouth", + "SouthEastAsia", + "SouthAfricaNorth", + "None" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "scaleUnit": { + "type": "string", + "description": "Gets or sets scaleUnit where the namespace gets created" + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Created", + "Creating", + "Suspended", + "Deleting" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "zoneRedundancy": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "Represents namespace properties." + }, + "namespaces_authorizationRules_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Deprecated - only for compatibility." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Authorization Rule Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SharedAccessAuthorizationRule properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deprecated - only for compatibility." + }, + "type": { + "type": "string", + "enum": [ + "authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/authorizationRules" + }, + "namespaces_notificationHubs_authorizationRules_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "Deprecated - only for compatibility." + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9!()*-._]+$", + "minLength": 1, + "maxLength": 256 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Authorization Rule Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SharedAccessAuthorizationRule properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Deprecated - only for compatibility." + }, + "type": { + "type": "string", + "enum": [ + "authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/notificationHubs/authorizationRules" + }, + "namespaces_notificationHubs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-./_]*$", + "minLength": 1, + "maxLength": 265 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Notification Hub name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/NotificationHubProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NotificationHub properties." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The Sku description for a namespace" + }, + "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": [ + "notificationHubs" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/notificationHubs" + }, + "namespaces_privateEndpointConnections_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2023-01-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$", + "minLength": 1, + "maxLength": 87 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Private Endpoint Connection Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PrivateEndpointConnectionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Private Endpoint Connection properties." + }, + "type": { + "type": "string", + "enum": [ + "privateEndpointConnections" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.NotificationHubs/namespaces/privateEndpointConnections" + }, + "NetworkAcls": { + "type": "object", + "properties": { + "ipRules": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IpRule" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of IP rules." + }, + "publicNetworkRule": { + "oneOf": [ + { + "$ref": "#/definitions/PublicInternetAuthorizationRule" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A default (public Internet) network authorization rule, which contains rights if no other network rule matches." + } + }, + "description": "A collection of network authorization rules." + }, + "NotificationHubProperties": { + "type": "object", + "properties": { + "admCredential": { + "oneOf": [ + { + "$ref": "#/definitions/AdmCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub AdmCredential." + }, + "apnsCredential": { + "oneOf": [ + { + "$ref": "#/definitions/ApnsCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub ApnsCredential." + }, + "baiduCredential": { + "oneOf": [ + { + "$ref": "#/definitions/BaiduCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub BaiduCredential." + }, + "browserCredential": { + "oneOf": [ + { + "$ref": "#/definitions/BrowserCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub BrowserCredential." + }, + "gcmCredential": { + "oneOf": [ + { + "$ref": "#/definitions/GcmCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub GcmCredential." + }, + "mpnsCredential": { + "oneOf": [ + { + "$ref": "#/definitions/MpnsCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub MpnsCredential." + }, + "name": { + "type": "string", + "description": "Gets or sets the NotificationHub name." + }, + "registrationTtl": { + "type": "string", + "description": "Gets or sets the RegistrationTtl of the created NotificationHub" + }, + "wnsCredential": { + "oneOf": [ + { + "$ref": "#/definitions/WnsCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub WnsCredential." + }, + "xiaomiCredential": { + "oneOf": [ + { + "$ref": "#/definitions/XiaomiCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub XiaomiCredential." + } + }, + "description": "NotificationHub properties." + }, + "PnsCredentials": { + "type": "object", + "properties": { + "admCredential": { + "oneOf": [ + { + "$ref": "#/definitions/AdmCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub AdmCredential." + }, + "apnsCredential": { + "oneOf": [ + { + "$ref": "#/definitions/ApnsCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub ApnsCredential." + }, + "baiduCredential": { + "oneOf": [ + { + "$ref": "#/definitions/BaiduCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub BaiduCredential." + }, + "browserCredential": { + "oneOf": [ + { + "$ref": "#/definitions/BrowserCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub BrowserCredential." + }, + "gcmCredential": { + "oneOf": [ + { + "$ref": "#/definitions/GcmCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub GcmCredential." + }, + "mpnsCredential": { + "oneOf": [ + { + "$ref": "#/definitions/MpnsCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub MpnsCredential." + }, + "wnsCredential": { + "oneOf": [ + { + "$ref": "#/definitions/WnsCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub WnsCredential." + }, + "xiaomiCredential": { + "oneOf": [ + { + "$ref": "#/definitions/XiaomiCredential" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub XiaomiCredential." + } + }, + "description": "Collection of Notification Hub or Notification Hub Namespace PNS credentials." + }, + "PrivateEndpointConnectionProperties": { + "type": "object", + "properties": { + "privateEndpoint": { + "oneOf": [ + { + "$ref": "#/definitions/RemotePrivateEndpointConnection" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection." + }, + "privateLinkServiceConnectionState": { + "oneOf": [ + { + "$ref": "#/definitions/RemotePrivateLinkServiceConnectionState" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "State of the Private Link Service connection." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Unknown", + "Succeeded", + "Creating", + "Updating", + "UpdatingByProxy", + "Deleting", + "DeletingByProxy", + "Deleted" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "Private Endpoint Connection properties." + }, + "PublicInternetAuthorizationRule": { + "type": "object", + "properties": { + "rights": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Manage", + "Send", + "Listen" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "List of access rights." + } + }, + "required": [ + "rights" + ], + "description": "A default (public Internet) network authorization rule, which contains rights if no other network rule matches." + }, + "RemotePrivateEndpointConnection": { + "type": "object", + "properties": {}, + "description": "Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection." + }, + "RemotePrivateLinkServiceConnectionState": { + "type": "object", + "properties": { + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disconnected", + "Pending", + "Approved", + "Rejected" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + } + }, + "description": "State of the Private Link Service connection." + }, + "SharedAccessAuthorizationRuleProperties": { + "type": "object", + "properties": { + "primaryKey": { + "type": "string", + "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token." + }, + "rights": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Manage", + "Send", + "Listen" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gets or sets the rights associated with the rule." + }, + "secondaryKey": { + "type": "string", + "description": "Gets a base64-encoded 256-bit primary key for signing and\r\nvalidating the SAS token." + } + }, + "required": [ + "rights" + ], + "description": "SharedAccessAuthorizationRule properties." + }, + "Sku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Gets or sets the capacity of the resource" + }, + "family": { + "type": "string", + "description": "Gets or sets the Sku Family" + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Free", + "Basic", + "Standard" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "size": { + "type": "string", + "description": "Gets or sets the Sku size" + }, + "tier": { + "type": "string", + "description": "Gets or sets the tier of particular sku" + } + }, + "required": [ + "name" + ], + "description": "The Sku description for a namespace" + }, + "WnsCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WnsCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub WnsCredential." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub WnsCredential." + }, + "WnsCredentialProperties": { + "type": "object", + "properties": { + "certificateKey": { + "type": "string", + "description": "Ges or sets the WNS Certificate Key." + }, + "packageSid": { + "type": "string", + "description": "Gets or sets the package ID for this credential." + }, + "secretKey": { + "type": "string", + "description": "Gets or sets the secret key." + }, + "windowsLiveEndpoint": { + "type": "string", + "description": "Gets or sets the Windows Live endpoint." + }, + "wnsCertificate": { + "type": "string", + "description": "Gets or sets the WNS Certificate." + } + }, + "description": "Description of a NotificationHub WnsCredential." + }, + "XiaomiCredential": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/XiaomiCredentialProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Description of a NotificationHub XiaomiCredentialProperties." + } + }, + "required": [ + "properties" + ], + "description": "Description of a NotificationHub XiaomiCredential." + }, + "XiaomiCredentialProperties": { + "type": "object", + "properties": { + "appSecret": { + "type": "string", + "description": "Gets or sets app secret." + }, + "endpoint": { + "type": "string", + "description": "Gets or sets xiaomi service endpoint." + } + }, + "description": "Description of a NotificationHub XiaomiCredentialProperties." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 809acbc1aa..45c0a6f48a 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -25945,6 +25945,21 @@ { "$ref": "https://schema.management.azure.com/schemas/2017-04-01/Microsoft.NotificationHubs.json#/resourceDefinitions/namespaces_notificationHubs_AuthorizationRules" }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json#/resourceDefinitions/namespaces" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json#/resourceDefinitions/namespaces_authorizationRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json#/resourceDefinitions/namespaces_notificationHubs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json#/resourceDefinitions/namespaces_notificationHubs_authorizationRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2023-01-01-preview/Microsoft.NotificationHubs.json#/resourceDefinitions/namespaces_privateEndpointConnections" + }, { "$ref": "https://schema.management.azure.com/schemas/2020-01-01/Microsoft.OffAzure.json#/resourceDefinitions/HyperVSites" },