diff --git a/schemas/2017-04-01/Microsoft.EventHub.json b/schemas/2017-04-01/Microsoft.EventHub.json index 6e56feb09f..616f751ec0 100644 --- a/schemas/2017-04-01/Microsoft.EventHub.json +++ b/schemas/2017-04-01/Microsoft.EventHub.json @@ -187,7 +187,7 @@ "name": { "type": "string", "minLength": 1, - "maxLength": 50, + "maxLength": 256, "description": "The Event Hub name" }, "properties": { @@ -766,7 +766,7 @@ "name": { "type": "string", "minLength": 1, - "maxLength": 50, + "maxLength": 256, "description": "The Event Hub name" }, "properties": { diff --git a/schemas/2018-01-01-preview/Microsoft.EventHub.json b/schemas/2018-01-01-preview/Microsoft.EventHub.json index 9384bb4546..8d36965d6b 100644 --- a/schemas/2018-01-01-preview/Microsoft.EventHub.json +++ b/schemas/2018-01-01-preview/Microsoft.EventHub.json @@ -108,7 +108,7 @@ "properties": { "oneOf": [ { - "$ref": "#/definitions/EHNamespacePropertiesModel" + "$ref": "#/definitions/EHNamespaceProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -128,6 +128,15 @@ }, { "$ref": "#/definitions/namespaces_networkRuleSets_childResource" + }, + { + "$ref": "#/definitions/namespaces_authorizationRules_childResource" + }, + { + "$ref": "#/definitions/namespaces_disasterRecoveryConfigs_childResource" + }, + { + "$ref": "#/definitions/namespaces_eventhubs_childResource" } ] } @@ -173,6 +182,222 @@ ], "description": "Microsoft.EventHub/namespaces" }, + "namespaces_authorizationRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "description": "The authorization rule name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties supplied to create or update AuthorizationRule" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.EventHub/namespaces/authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/authorizationRules" + }, + "namespaces_disasterRecoveryConfigs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "description": "The Disaster Recovery configuration name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArmDisasterRecoveryProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties required to the Create Or Update Alias(Disaster Recovery configurations)" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.EventHub/namespaces/disasterRecoveryConfigs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs" + }, + "namespaces_eventhubs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "description": "The Event Hub name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/EventhubProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties supplied to the Create Or Update Event Hub operation." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/namespaces_eventhubs_authorizationRules_childResource" + }, + { + "$ref": "#/definitions/namespaces_eventhubs_consumergroups_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.EventHub/namespaces/eventhubs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/eventhubs" + }, + "namespaces_eventhubs_authorizationRules": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "description": "The authorization rule name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties supplied to create or update AuthorizationRule" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.EventHub/namespaces/eventhubs/authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules" + }, + "namespaces_eventhubs_consumergroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "description": "The consumer group name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ConsumerGroupProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Single item in List or Get Consumer group operation" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.EventHub/namespaces/eventhubs/consumergroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/eventhubs/consumergroups" + }, "namespaces_ipfilterrules": { "type": "object", "properties": { @@ -236,7 +461,7 @@ "properties": { "oneOf": [ { - "$ref": "#/definitions/NetworkRuleSetPropertiesModel" + "$ref": "#/definitions/NetworkRuleSetProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -301,6 +526,128 @@ } }, "definitions": { + "ArmDisasterRecoveryProperties": { + "type": "object", + "properties": { + "alternateName": { + "type": "string", + "description": "Alternate name specified when alias and namespace names are same." + }, + "partnerNamespace": { + "type": "string", + "description": "ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing" + } + }, + "description": "Properties required to the Create Or Update Alias(Disaster Recovery configurations)" + }, + "AuthorizationRuleProperties": { + "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": "The rights associated with the rule." + } + }, + "required": [ + "rights" + ], + "description": "Properties supplied to create or update AuthorizationRule" + }, + "CaptureDescription": { + "type": "object", + "properties": { + "destination": { + "oneOf": [ + { + "$ref": "#/definitions/Destination" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Capture storage details for capture description" + }, + "enabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A value that indicates whether capture description is enabled. " + }, + "encoding": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Avro", + "AvroDeflate" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version." + }, + "intervalInSeconds": { + "oneOf": [ + { + "type": "integer", + "minimum": 60, + "maximum": 900 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds" + }, + "sizeLimitInBytes": { + "oneOf": [ + { + "type": "integer", + "minimum": 10485760, + "maximum": 524288000 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes" + }, + "skipEmptyArchives": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A value that indicates whether to Skip Empty Archives" + } + }, + "description": "Properties to configure capture description for eventhub" + }, "ClusterProperties": { "type": "object", "properties": {}, @@ -342,7 +689,56 @@ ], "description": "SKU parameters particular to a cluster instance." }, - "EHNamespacePropertiesModel": { + "ConsumerGroupProperties": { + "type": "object", + "properties": { + "userMetadata": { + "type": "string", + "description": "User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored." + } + }, + "description": "Single item in List or Get Consumer group operation" + }, + "Destination": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name for capture destination" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DestinationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties describing the storage account, blob container and archive name format for capture destination" + } + }, + "description": "Capture storage details for capture description" + }, + "DestinationProperties": { + "type": "object", + "properties": { + "archiveNameFormat": { + "type": "string", + "description": "Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order" + }, + "blobContainer": { + "type": "string", + "description": "Blob container Name" + }, + "storageAccountResourceId": { + "type": "string", + "description": "Resource id of the storage account to be used to create the blobs" + } + }, + "description": "Properties describing the storage account, blob container and archive name format for capture destination" + }, + "EHNamespaceProperties": { "type": "object", "properties": { "clusterArmId": { @@ -443,6 +839,69 @@ }, "description": "Properties to configure Encryption" }, + "EventhubProperties": { + "type": "object", + "properties": { + "captureDescription": { + "oneOf": [ + { + "$ref": "#/definitions/CaptureDescription" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties to configure capture description for eventhub" + }, + "messageRetentionInDays": { + "oneOf": [ + { + "type": "integer", + "minimum": 1 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Number of days to retain the events for this Event Hub, value should be 1 to 7 days" + }, + "partitionCount": { + "oneOf": [ + { + "type": "integer", + "minimum": 1 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions." + }, + "status": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Enumerates the possible values for the status of the Event Hub." + } + }, + "description": "Properties supplied to the Create Or Update Event Hub operation." + }, "Identity": { "type": "object", "properties": { @@ -518,6 +977,209 @@ }, "description": "Properties to configure keyVault Properties" }, + "namespaces_authorizationRules_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "description": "The authorization rule name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties supplied to create or update AuthorizationRule" + }, + "type": { + "type": "string", + "enum": [ + "authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/authorizationRules" + }, + "namespaces_disasterRecoveryConfigs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "description": "The Disaster Recovery configuration name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArmDisasterRecoveryProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties required to the Create Or Update Alias(Disaster Recovery configurations)" + }, + "type": { + "type": "string", + "enum": [ + "disasterRecoveryConfigs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs" + }, + "namespaces_eventhubs_authorizationRules_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "description": "The authorization rule name." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AuthorizationRuleProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties supplied to create or update AuthorizationRule" + }, + "type": { + "type": "string", + "enum": [ + "authorizationRules" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules" + }, + "namespaces_eventhubs_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 256, + "description": "The Event Hub name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/EventhubProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties supplied to the Create Or Update Event Hub operation." + }, + "type": { + "type": "string", + "enum": [ + "eventhubs" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/eventhubs" + }, + "namespaces_eventhubs_consumergroups_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2018-01-01-preview" + ] + }, + "name": { + "type": "string", + "minLength": 1, + "maxLength": 50, + "description": "The consumer group name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ConsumerGroupProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Single item in List or Get Consumer group operation" + }, + "type": { + "type": "string", + "enum": [ + "consumergroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.EventHub/namespaces/eventhubs/consumergroups" + }, "namespaces_ipfilterrules_childResource": { "type": "object", "properties": { @@ -576,7 +1238,7 @@ "properties": { "oneOf": [ { - "$ref": "#/definitions/NetworkRuleSetPropertiesModel" + "$ref": "#/definitions/NetworkRuleSetProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -639,7 +1301,7 @@ ], "description": "Microsoft.EventHub/namespaces/virtualnetworkrules" }, - "NetworkRuleSetPropertiesModel": { + "NetworkRuleSetProperties": { "type": "object", "properties": { "defaultAction": { @@ -662,7 +1324,7 @@ { "type": "array", "items": { - "$ref": "#/definitions/NWRuleSetIpRulesModel" + "$ref": "#/definitions/NWRuleSetIpRules" } }, { @@ -671,12 +1333,23 @@ ], "description": "List of IpRules" }, + "trustedServiceAccessEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Value that indicates whether Trusted Service Access is Enabled or not." + }, "virtualNetworkRules": { "oneOf": [ { "type": "array", "items": { - "$ref": "#/definitions/NWRuleSetVirtualNetworkRulesModel" + "$ref": "#/definitions/NWRuleSetVirtualNetworkRules" } }, { @@ -688,7 +1361,7 @@ }, "description": "NetworkRuleSet properties" }, - "NWRuleSetIpRulesModel": { + "NWRuleSetIpRules": { "type": "object", "properties": { "action": { @@ -712,7 +1385,7 @@ }, "description": "The response from the List namespace operation." }, - "NWRuleSetVirtualNetworkRulesModel": { + "NWRuleSetVirtualNetworkRules": { "type": "object", "properties": { "ignoreMissingVnetServiceEndpoint": { @@ -729,7 +1402,7 @@ "subnet": { "oneOf": [ { - "$ref": "#/definitions/SubnetModel" + "$ref": "#/definitions/Subnet" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -792,7 +1465,7 @@ ], "description": "SKU parameters supplied to the create namespace operation" }, - "SubnetModel": { + "Subnet": { "type": "object", "properties": { "id": { diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index a18ff59272..cf0d8e9c92 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -3145,6 +3145,21 @@ { "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces" }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_authorizationRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_disasterRecoveryConfigs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_eventhubs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_eventhubs_authorizationRules" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_eventhubs_consumergroups" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-01-01-preview/Microsoft.EventHub.json#/resourceDefinitions/namespaces_ipfilterrules" },