From 591e43a67885870723de87c19e554ebced305bd2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 26 Jul 2021 03:03:33 +0000 Subject: [PATCH] CodeGen from PR 15274 in Azure/azure-rest-api-specs Time Series Insights - add 2021-06-30-preview API version, and supportsCustomerManagedKey output property (#15274) * Adds base for updating Microsoft.TimeSeriesInsights from version stable/2020-05-15 to version 2021-06-30-preview * Updates readme * Updates API version in new specs and examples * Add supportsCustomerManagedKey to env response definition, examples --- .../Microsoft.TimeSeriesInsights.json | 1036 +++++++++++++++++ schemas/common/autogeneratedResources.json | 12 + 2 files changed, 1048 insertions(+) create mode 100644 schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json diff --git a/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json b/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json new file mode 100644 index 0000000000..35fb3c2670 --- /dev/null +++ b/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json @@ -0,0 +1,1036 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.TimeSeriesInsights", + "description": "Microsoft TimeSeriesInsights Resource Types", + "resourceDefinitions": { + "environments": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/Gen1EnvironmentCreateOrUpdateParameters" + }, + { + "$ref": "#/definitions/Gen2EnvironmentCreateOrUpdateParameters" + } + ], + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "name": { + "type": "string", + "description": "Name of the environment" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/environments_eventSources_childResource" + }, + { + "$ref": "#/definitions/environments_referenceDataSets_childResource" + }, + { + "$ref": "#/definitions/environments_accessPolicies_childResource" + } + ] + } + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/Sku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Key-value pairs of additional properties for the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.TimeSeriesInsights/environments" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "sku", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments" + }, + "environments_accessPolicies": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "name": { + "type": "string", + "description": "Name of the access policy." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AccessPolicyResourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.TimeSeriesInsights/environments/accessPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments/accessPolicies" + }, + "environments_eventSources": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/EventHubEventSourceCreateOrUpdateParameters" + }, + { + "$ref": "#/definitions/IoTHubEventSourceCreateOrUpdateParameters" + } + ], + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "localTimestamp": { + "oneOf": [ + { + "$ref": "#/definitions/LocalTimestamp" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "name": { + "type": "string", + "description": "Name of the event source." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Key-value pairs of additional properties for the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.TimeSeriesInsights/environments/eventSources" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments/eventSources" + }, + "environments_referenceDataSets": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "name": { + "type": "string", + "description": "Name of the reference data set." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ReferenceDataSetCreationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties used to create a reference data set." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Key-value pairs of additional properties for the resource." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.TimeSeriesInsights/environments/referenceDataSets" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments/referenceDataSets" + } + }, + "definitions": { + "AccessPolicyResourceProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "An description of the access policy." + }, + "principalObjectId": { + "type": "string", + "description": "The objectId of the principal in Azure Active Directory." + }, + "roles": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Reader", + "Contributor" + ] + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of roles the principal is assigned on the environment." + } + } + }, + "environments_accessPolicies_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "name": { + "type": "string", + "description": "Name of the access policy." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/AccessPolicyResourceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "type": { + "type": "string", + "enum": [ + "accessPolicies" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments/accessPolicies" + }, + "environments_eventSources_childResource": { + "type": "object", + "oneOf": [ + { + "$ref": "#/definitions/EventHubEventSourceCreateOrUpdateParameters" + }, + { + "$ref": "#/definitions/IoTHubEventSourceCreateOrUpdateParameters" + } + ], + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "localTimestamp": { + "oneOf": [ + { + "$ref": "#/definitions/LocalTimestamp" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "name": { + "type": "string", + "description": "Name of the event source." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Key-value pairs of additional properties for the resource." + }, + "type": { + "type": "string", + "enum": [ + "eventSources" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments/eventSources" + }, + "environments_referenceDataSets_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-06-30-preview" + ] + }, + "location": { + "type": "string", + "description": "The location of the resource." + }, + "name": { + "type": "string", + "description": "Name of the reference data set." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ReferenceDataSetCreationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties used to create a reference data set." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Key-value pairs of additional properties for the resource." + }, + "type": { + "type": "string", + "enum": [ + "referenceDataSets" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.TimeSeriesInsights/environments/referenceDataSets" + }, + "EventHubEventSourceCreateOrUpdateParameters": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Microsoft.EventHub" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/EventHubEventSourceCreationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the EventHub event source that are required on create or update requests." + } + }, + "required": [ + "kind", + "properties" + ], + "description": "Parameters supplied to the Create or Update Event Source operation for an EventHub event source." + }, + "EventHubEventSourceCreationProperties": { + "type": "object", + "properties": { + "consumerGroupName": { + "type": "string", + "description": "The name of the event hub's consumer group that holds the partitions from which events will be read." + }, + "eventHubName": { + "type": "string", + "description": "The name of the event hub." + }, + "eventSourceResourceId": { + "type": "string", + "description": "The resource id of the event source in Azure Resource Manager." + }, + "ingressStartAt": { + "oneOf": [ + { + "$ref": "#/definitions/IngressStartAtProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that contains the details about the starting point in time to ingest events." + }, + "keyName": { + "type": "string", + "description": "The name of the SAS key that grants the Time Series Insights service access to the event hub. The shared access policies for this key must grant 'Listen' permissions to the event hub." + }, + "localTimestamp": { + "oneOf": [ + { + "$ref": "#/definitions/LocalTimestamp" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Succeeded", + "Failed", + "Deleting" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Provisioning state of the resource." + }, + "serviceBusNamespace": { + "type": "string", + "description": "The name of the service bus that contains the event hub." + }, + "sharedAccessKey": { + "type": "string", + "description": "The value of the shared access key that grants the Time Series Insights service read access to the event hub. This property is not shown in event source responses." + }, + "timestampPropertyName": { + "type": "string", + "description": "The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used." + } + }, + "required": [ + "consumerGroupName", + "eventHubName", + "eventSourceResourceId", + "keyName", + "serviceBusNamespace", + "sharedAccessKey" + ], + "description": "Properties of the EventHub event source that are required on create or update requests." + }, + "Gen1EnvironmentCreateOrUpdateParameters": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Gen1" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/Gen1EnvironmentCreationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties used to create a Gen1 environment." + } + }, + "required": [ + "kind", + "properties" + ], + "description": "Parameters supplied to the Create or Update Environment operation for a Gen1 environment." + }, + "Gen1EnvironmentCreationProperties": { + "type": "object", + "properties": { + "dataRetentionTime": { + "type": "string", + "format": "duration", + "description": "ISO8601 timespan specifying the minimum number of days the environment's events will be available for query." + }, + "partitionKeyProperties": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesIdProperty" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of event properties which will be used to partition data in the environment. Currently, only a single partition key property is supported." + }, + "storageLimitExceededBehavior": { + "oneOf": [ + { + "type": "string", + "enum": [ + "PurgeOldData", + "PauseIngress" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If \"PauseIngress\" is specified, new events will not be read from the event source. If \"PurgeOldData\" is specified, new events will continue to be read and old events will be deleted from the environment. The default behavior is PurgeOldData." + } + }, + "required": [ + "dataRetentionTime" + ], + "description": "Properties used to create a Gen1 environment." + }, + "Gen2EnvironmentCreateOrUpdateParameters": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Gen2" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/Gen2EnvironmentCreationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties used to create a Gen2 environment." + } + }, + "required": [ + "kind", + "properties" + ], + "description": "Parameters supplied to the Create or Update Environment operation for a Gen2 environment." + }, + "Gen2EnvironmentCreationProperties": { + "type": "object", + "properties": { + "storageConfiguration": { + "oneOf": [ + { + "$ref": "#/definitions/Gen2StorageConfigurationInput" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + }, + "timeSeriesIdProperties": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/TimeSeriesIdProperty" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of event properties which will be used to define the environment's time series id." + }, + "warmStoreConfiguration": { + "oneOf": [ + { + "$ref": "#/definitions/WarmStoreConfigurationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query." + } + }, + "required": [ + "storageConfiguration", + "timeSeriesIdProperties" + ], + "description": "Properties used to create a Gen2 environment." + }, + "Gen2StorageConfigurationInput": { + "type": "object", + "properties": { + "accountName": { + "type": "string", + "description": "The name of the storage account that will hold the environment's Gen2 data." + }, + "managementKey": { + "type": "string", + "description": "The value of the management key that grants the Time Series Insights service write access to the storage account. This property is not shown in environment responses." + } + }, + "required": [ + "accountName", + "managementKey" + ], + "description": "The storage configuration provides the connection details that allows the Time Series Insights service to connect to the customer storage account that is used to store the environment's data." + }, + "IngressStartAtProperties": { + "type": "object", + "properties": { + "time": { + "type": "string", + "description": "ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date and time that will be the starting point for Events to be consumed." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "EarliestAvailable", + "EventSourceCreationTime", + "CustomEnqueuedTime" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the ingressStartAt, It can be \"EarliestAvailable\", \"EventSourceCreationTime\", \"CustomEnqueuedTime\"." + } + }, + "description": "An object that contains the details about the starting point in time to ingest events." + }, + "IoTHubEventSourceCreateOrUpdateParameters": { + "type": "object", + "properties": { + "kind": { + "type": "string", + "enum": [ + "Microsoft.IoTHub" + ] + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/IoTHubEventSourceCreationProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of the IoTHub event source that are required on create or update requests." + } + }, + "required": [ + "kind", + "properties" + ], + "description": "Parameters supplied to the Create or Update Event Source operation for an IoTHub event source." + }, + "IoTHubEventSourceCreationProperties": { + "type": "object", + "properties": { + "consumerGroupName": { + "type": "string", + "description": "The name of the iot hub's consumer group that holds the partitions from which events will be read." + }, + "eventSourceResourceId": { + "type": "string", + "description": "The resource id of the event source in Azure Resource Manager." + }, + "ingressStartAt": { + "oneOf": [ + { + "$ref": "#/definitions/IngressStartAtProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that contains the details about the starting point in time to ingest events." + }, + "iotHubName": { + "type": "string", + "description": "The name of the iot hub." + }, + "keyName": { + "type": "string", + "description": "The name of the Shared Access Policy key that grants the Time Series Insights service access to the iot hub. This shared access policy key must grant 'service connect' permissions to the iot hub." + }, + "localTimestamp": { + "oneOf": [ + { + "$ref": "#/definitions/LocalTimestamp" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Accepted", + "Creating", + "Updating", + "Succeeded", + "Failed", + "Deleting" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Provisioning state of the resource." + }, + "sharedAccessKey": { + "type": "string", + "description": "The value of the Shared Access Policy key that grants the Time Series Insights service read access to the iot hub. This property is not shown in event source responses." + }, + "timestampPropertyName": { + "type": "string", + "description": "The event property that will be used as the event source's timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used." + } + }, + "required": [ + "consumerGroupName", + "eventSourceResourceId", + "iotHubName", + "keyName", + "sharedAccessKey" + ], + "description": "Properties of the IoTHub event source that are required on create or update requests." + }, + "LocalTimestamp": { + "type": "object", + "properties": { + "format": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Embedded" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An enum that represents the format of the local timestamp property that needs to be set." + }, + "timeZoneOffset": { + "oneOf": [ + { + "$ref": "#/definitions/LocalTimestampTimeZoneOffset" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded." + } + }, + "description": "An object that represents the local timestamp property. It contains the format of local timestamp that needs to be used and the corresponding timezone offset information. If a value isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed with the events." + }, + "LocalTimestampTimeZoneOffset": { + "type": "object", + "properties": { + "propertyName": { + "type": "string", + "description": "The event property that will be contain the offset information to calculate the local timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When LocalTimestampFormat is Timespan, it contains the name of property which contains values representing the offset (eg: P1D or 1.00:00:00)" + } + }, + "description": "An object that represents the offset information for the local timestamp format specified. Should not be specified for LocalTimestampFormat - Embedded." + }, + "ReferenceDataSetCreationProperties": { + "type": "object", + "properties": { + "dataStringComparisonBehavior": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Ordinal", + "OrdinalIgnoreCase" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The reference data set key comparison behavior can be set using this property. By default, the value is 'Ordinal' - which means case sensitive key comparison will be performed while joining reference data with events or while adding new reference data. When 'OrdinalIgnoreCase' is set, case insensitive comparison will be used." + }, + "keyProperties": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ReferenceDataSetKeyProperty" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of key properties for the reference data set." + } + }, + "required": [ + "keyProperties" + ], + "description": "Properties used to create a reference data set." + }, + "ReferenceDataSetKeyProperty": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the key property." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "String", + "Double", + "Bool", + "DateTime" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the key property." + } + }, + "description": "A key property for the reference data set. A reference data set can have multiple key properties." + }, + "Sku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer", + "minimum": 1, + "maximum": 10 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created." + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "S1", + "S2", + "P1", + "L1" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of this SKU." + } + }, + "required": [ + "capacity", + "name" + ], + "description": "The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate." + }, + "TimeSeriesIdProperty": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the property." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "String" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the property." + } + }, + "description": "The structure of the property that a time series id can have. An environment can have multiple such properties." + }, + "WarmStoreConfigurationProperties": { + "type": "object", + "properties": { + "dataRetention": { + "type": "string", + "format": "duration", + "description": "ISO8601 timespan specifying the number of days the environment's events will be available for query from the warm store." + } + }, + "required": [ + "dataRetention" + ], + "description": "The warm store configuration provides the details to create a warm store cache that will retain a copy of the environment's data available for faster query." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index e5e5e3707d..c941250c7b 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -10735,6 +10735,18 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-05-15/Microsoft.TimeSeriesInsights.json#/resourceDefinitions/environments_referenceDataSets" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json#/resourceDefinitions/environments" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json#/resourceDefinitions/environments_accessPolicies" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json#/resourceDefinitions/environments_eventSources" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-06-30-preview/Microsoft.TimeSeriesInsights.json#/resourceDefinitions/environments_referenceDataSets" + }, { "$ref": "https://schema.management.azure.com/schemas/2018-02-01-preview/Microsoft.VirtualMachineImages.json#/resourceDefinitions/imageTemplates" },