diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json index 741345efce80..ab118f80e7d5 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersCreateOrUpdate.json @@ -7,7 +7,7 @@ "parameters": { "location": "westus", "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -24,7 +24,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -40,7 +40,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json index 15ca289ccd6a..0a532f66c29c 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersGet.json @@ -16,7 +16,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json index c57e59e5c0de..07729df8e16c 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersList.json @@ -16,7 +16,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -30,7 +30,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json index f9119e42a520..6468c32a6dcb 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListByResourceGroup.json @@ -17,7 +17,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -31,7 +31,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json index 3cb75ce0af16..40169dc8d909 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListResourceSkus.json @@ -12,7 +12,7 @@ { "resourceType": "clusters", "sku": { - "name": "D13_v2", + "name": "Standard_D13_v2", "tier": "Standard" }, "capacity": { @@ -25,7 +25,7 @@ { "resourceType": "clusters", "sku": { - "name": "D14_v2", + "name": "Standard_D14_v2", "tier": "Standard" }, "capacity": { @@ -38,7 +38,7 @@ { "resourceType": "clusters", "sku": { - "name": "L8", + "name": "Standard_L8s", "tier": "Standard" }, "capacity": { @@ -51,7 +51,7 @@ { "resourceType": "clusters", "sku": { - "name": "L16", + "name": "Standard_L16s", "tier": "Standard" }, "capacity": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json index 1441c8f0f6ff..1951afc29364 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersListSkus.json @@ -1,4 +1,4 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", @@ -8,27 +8,67 @@ "200": { "body": { "value": [ - { - "name": "D13_v2", + { + "name": "Standard_D13_v2", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "Standard_D14_v2", "tier": "Standard", - "capacity": 2 + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] }, { - "name": "D14_v2", - "tier": "Standard", - "capacity": 2 - }, - { - "name": "L8", - "tier": "Standard", - "capacity": 2 - }, - { - "name": "L16", - "tier": "Standard", - "capacity": 2 - } - ] + "name": "L8", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + }, + { + "name": "L16", + "tier": "Standard", + "locations": [ "West US", "West Europe" ], + "locationInfo": [ + { + "location": "West US", + "zones": [ "1", "2", "3" ] + }, + { + "location": "West Europe", + "zones": [] + } + ] + } + ] } } } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json index 4e4980a43a3e..b100a348094b 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoClustersUpdate.json @@ -19,7 +19,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } @@ -35,7 +35,7 @@ "provisioningState": "Succeeded" }, "sku": { - "name": "L8", + "name": "Standard_L8s", "capacity": 2, "tier": "Standard" } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCheckNameAvailability.json new file mode 100644 index 000000000000..d6192f9d03e9 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/examples/KustoDataConnectionsCheckNameAvailability.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2019-01-21", + "clusterName": "kustoProd", + "databaseName": "KustoDatabase8", + "dataConnectionName": "DataConnections8", + "resourceGroupName": "kustorptest" + }, + "responses": { + "200": { + "body": { + "name": "DataConnections8", + "nameAvailable": "NotAvailable", + "message": "Name 'DataConnections8' is already taken. Please specify a different name." + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json index 47b8cfff0188..8c4e0878c2c2 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2019-01-21/kusto.json @@ -400,7 +400,7 @@ "responses": { "200": { "description": "OK.", - "schema": { "$ref": "#/definitions/ListSkusResult" } + "schema": { "$ref": "#/definitions/SkuDescriptionList" } }, "default": { "description": "Error response describing why the operation failed.", @@ -1073,6 +1073,60 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability": { + "post": { + "tags": [ + "DataConnections" + ], + "operationId": "DataConnections_CheckNameAvailability", + "x-ms-examples": { + "KustoDatabaseCheckNameAvailability": { + "$ref": "./examples/KustoDataConnectionsCheckNameAvailability.json" + } + }, + "description": "Checks that the data connection name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "dataConnectionName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DataConnectionCheckNameRequest" + }, + "description": "The name of the data connection." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the Kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}": { "get": { "tags": [ @@ -1338,794 +1392,946 @@ } } }, - "definitions": { - "ClusterProperties": { - "properties": { - "state": { - "type": "string", - "readOnly": true, - "description": "The state of the resource.", - "enum": [ - "Creating", - "Unavailable", - "Running", - "Deleting", - "Deleted", - "Stopping", - "Stopped", - "Starting", - "Updating" - ], - "x-ms-enum": { - "name": "State", - "modelAsString": true - } - }, - "provisioningState": { - "type": "string", - "readOnly": true, - "description": "The provisioned state of the resource.", - "enum": [ - "Running", - "Creating", - "Deleting", - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "uri": { - "type": "string", - "readOnly": true, - "description": "The cluster URI." - }, - "dataIngestionUri": { - "type": "string", - "readOnly": true, - "description": "The cluster data ingestion URI." - }, - "trustedExternalTenants": { - "type": "array", - "items": { - "$ref": "#/definitions/TrustedExternalTenant" - }, - "description": "The cluster's external tenants." - } - }, - "description": "Class representing the Kusto cluster properties." - }, - "TrustedExternalTenant": { - "properties": { - "value": { - "type": "string", - "description": "GUID representing an external tenant." - } - }, - "description": "Represents a tenant ID that is trusted by the cluster." - }, - "AzureResourceSku": { - "properties": { - "resourceType": { - "type": "string", - "description": "Resource Namespace and Type." - }, - "sku": { - "$ref": "#/definitions/AzureSku", - "description": "The SKU details." - }, - "capacity": { - "$ref": "#/definitions/AzureCapacity", - "description": "The SKU capacity." - } - }, - "description": "Azure resource SKU definition." - }, - "AzureCapacity": { - "type": "object", - "required": [ - "minimum", - "maximum", - "default", - "scaleType" - ], - "properties": { - "scaleType": { - "description": "Scale type.", - "type": "string", - "enum": [ - "automatic", - "manual", - "none" - ], - "x-ms-enum": { - "name": "AzureScaleType", - "modelAsString": true - } - }, - "minimum": { - "description": "Minimum allowed capacity.", - "type": "integer" - }, - "maximum": { - "description": "Maximum allowed capacity.", - "type": "integer" - }, - "default": { - "description": "The default capacity that would be used.", - "type": "integer" - } - }, - "description": "Azure capacity definition." - }, - "AzureSku": { - "type": "object", - "required": [ - "name", - "tier" - ], - "properties": { - "name": { - "description": "SKU name.", - "type": "string", - "enum": [ - "D13_v2", - "D14_v2", - "L8", - "L16", - "D11_v2", - "D12_v2", - "L4" - ], - "x-ms-enum": { - "name": "AzureSkuName", - "modelAsString": true - } - }, - "capacity": { - "description": "SKU capacity.", - "type": "integer" - }, - "tier": { - "description": "SKU tier.", - "type": "string", - "enum": [ - "Standard" - ], - "x-ms-enum": { - "name": "AzureSkuTier", - "modelAsString": true - } - } - }, - "description": "Azure SKU definition." - }, - "DatabaseStatistics": { - "type": "object", - "readOnly": true, - "properties": { - "size": { - "type": "number", - "description": "The database size - the total size of compressed data and index in bytes." - } - }, - "description": "A class that contains database statistics information." - }, - "DatabaseProperties": { - "properties": { - "provisioningState": { - "type": "string", - "readOnly": true, - "description": "The provisioned state of the resource.", - "enum": [ - "Running", - "Creating", - "Deleting", - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "softDeletePeriod": { - "type": "string", - "format": "duration", - "description": "The time the data should be kept before it stops being accessible to queries in TimeSpan." - }, - "hotCachePeriod": { - "type": "string", - "format": "duration", - "description": "The time the data that should be kept in cache for fast queries in TimeSpan." - }, - "statistics": { - "$ref": "#/definitions/DatabaseStatistics", - "description": "The statistics of the database." - } - }, - "description": "Class representing the Kusto database properties." - }, - "EventHubConnectionProperties": { - "properties": { - "eventHubResourceId": { - "type": "string", - "description": "The resource ID of the event hub to be used to create a data connection." - }, - "consumerGroup": { - "type": "string", - "description": "The event hub consumer group." - }, - "tableName": { - "type": "string", - "description": "The table where the data should be ingested. Optionally the table information can be added to each message." - }, - "mappingRuleName": { - "type": "string", - "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." - }, - "dataFormat": { - "$ref": "#/definitions/DataFormat", - "description": "The data format of the message. Optionally the data format can be added to each message." - } - }, - "required": [ - "eventHubResourceId", - "consumerGroup" - ], - "description": "Class representing the Kusto event hub connection properties." - }, - "DataFormat": { - "description": "The data format of the message. Optionally the data format can be added to each message.", - "type": "string", - "enum": [ - "MULTIJSON", - "JSON", - "CSV", - "TSV", - "SCSV", - "SOHSV", - "PSV", - "TXT", - "RAW", - "SINGLEJSON", - "AVRO" - ], - "x-ms-enum": { - "name": "dataFormat", - "modelAsString": true - } - }, - "EventGridConnectionProperties": { - "properties": { - "storageAccountResourceId": { - "type": "string", - "description": "The resource ID of the storage account where the data resides." - }, - "eventHubResourceId": { - "type": "string", - "description": "The resource ID where the event grid is configured to send events." - }, - "consumerGroup": { - "type": "string", - "description": "The event hub consumer group." - }, - "tableName": { - "type": "string", - "description": "The table where the data should be ingested. Optionally the table information can be added to each message." - }, - "mappingRuleName": { - "type": "string", - "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." - }, - "dataFormat": { - "$ref": "#/definitions/DataFormat", - "description": "The data format of the message. Optionally the data format can be added to each message." - } - }, - "required": [ - "storageAccountResourceId", - "eventHubResourceId", - "consumerGroup", - "tableName", - "dataFormat" - ], - "description": "Class representing the Kusto event grid connection properties." - }, - "Cluster": { - "required": [ - "sku" - ], - "properties": { - "sku": { - "$ref": "#/definitions/AzureSku", - "description": "The SKU of the cluster." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties", - "description": "The cluster properties." - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "Class representing a Kusto cluster." - }, - "ClusterUpdate": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-ms-mutability": [ - "read", - "create", - "update" - ], - "description": "Resource tags." - }, - "location": { - "type": "string", - "description": "Resource location." - }, - "sku": { - "$ref": "#/definitions/AzureSku", - "description": "The SKU of the cluster." - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The cluster properties.", - "$ref": "#/definitions/ClusterProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ], - "description": "Class representing an update to a Kusto cluster." - }, - "Database": { - "properties": { - "location": { - "type": "string", - "description": "Resource location." - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The database properties.", - "$ref": "#/definitions/DatabaseProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Class representing a Kusto database." - }, - "DatabaseUpdate": { - "properties": { - "location": { - "type": "string", - "description": "Resource location." - }, - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of the updated database.", - "$ref": "#/definitions/DatabaseProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ], - "description": "Class representing an update to a Kusto database." - }, - "DatabasePrincipal": { - "type": "object", - "required": [ - "name", - "role", - "type" - ], - "properties": { - "role": { - "description": "Database principal role.", - "type": "string", - "enum": [ - "Admin", - "Ingestor", - "Monitor", - "User", - "UnrestrictedViewers", - "Viewer" - ], - "x-ms-enum": { - "name": "DatabasePrincipalRole", - "modelAsString": true - } - }, - "name": { - "description": "Database principal name.", - "type": "string" - }, - "type": { - "description": "Database principal type.", - "type": "string", - "enum": [ - "App", - "Group", - "User" - ], - "x-ms-enum": { - "name": "DatabasePrincipalType", - "modelAsString": true - } - }, - "fqn": { - "description": "Database principal fully qualified name.", - "type": "string" - }, - "email": { - "description": "Database principal email if exists.", - "type": "string" - }, - "appId": { - "description": "Application id - relevant only for application principal type.", - "type": "string" - } - }, - "description": "A class representing database principal entity." - }, - "ClusterListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Cluster" - }, - "description": "The list of Kusto clusters." - } - }, - "description": "The list Kusto clusters operation response." - }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of Kusto databases." - } - }, - "description": "The list Kusto databases operation response." - }, - "DatabasePrincipalListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DatabasePrincipal" - }, - "description": "The list of Kusto database principals." - } - }, - "description": "The list Kusto database principals operation response." - }, - "DataConnection": { - "required": [ - "kind" - ], - "properties": { - "location": { - "type": "string", - "description": "Resource location." - }, - "kind": { - "description": "Kind of the endpoint for the data connection", - "enum": [ - "EventHub", - "EventGrid" - ], - "type": "string", - "x-ms-enum": { - "name": "Kind", - "modelAsString": true - } - } - }, - "allOf": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Class representing an data connection.", - "discriminator": "kind" - }, - "DataConnectionValidationResult": { - "type": "object", - "properties": { - "errorMessage": { - "type": "string", - "description": "A message which indicates a problem in data connection validation." - } - }, - "description": "The result returned from a data connection validation request." - }, - "DatabasePrincipalListRequest": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DatabasePrincipal" - }, - "description": "The list of Kusto database principals." - } - }, - "description": "The list Kusto database principals operation request." - }, - "DataConnectionValidation": { - "properties": { - "dataConnectionName": { - "type": "string", - "description": "The name of the data connection." - }, - "properties": { - "$ref": "#/definitions/DataConnection", - "description": "The data connection properties to validate." - } - }, - "description": "Class representing an data connection validation." - }, - "EventHubDataConnection": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The Event Hub data connection properties to validate.", - "$ref": "#/definitions/EventHubConnectionProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/DataConnection" - } - ], - "description": "Class representing an event hub data connection.", - "x-ms-discriminator-value": "EventHub" - }, - "EventGridDataConnection": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "The properties of the Event Grid data connection.", - "$ref": "#/definitions/EventGridConnectionProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/DataConnection" - } - ], - "description": "Class representing an Event Grid data connection.", - "x-ms-discriminator-value": "EventGrid" - }, - "DataConnectionValidationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DataConnectionValidationResult" - }, - "description": "The list of Kusto data connection validation errors." - } - }, - "description": "The list Kusto data connection validation result." - }, - "DataConnectionListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DataConnection" - }, - "description": "The list of Kusto data connections." - } - }, - "description": "The list Kusto data connections operation response." - }, - "CloudError": { - "x-ms-external": true, - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody", - "description": "An error response from Kusto." - } - }, - "description": "An error response from Kusto." - }, - "ClusterCheckNameRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Cluster name." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Kusto/clusters" - ], - "x-ms-enum": { - "name": "Type", - "modelAsString": false - }, - "description": "The type of resource, Microsoft.Kusto/clusters." - } - }, - "required": [ - "name", - "type" - ], - "description": "The result returned from a cluster check name availability request." - }, - "DatabaseCheckNameRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Database name." - }, - "type": { - "type": "string", - "enum": [ - "Microsoft.Kusto/clusters/databases" - ], - "x-ms-enum": { - "name": "Type", - "modelAsString": false - }, - "description": "The type of resource, Microsoft.Kusto/clusters/databases." - } - }, - "required": [ - "name", - "type" - ], - "description": "The result returned from a database check name availability request." - }, - "CheckNameResult": { - "type": "object", - "properties": { - "nameAvailable": { - "type": "boolean", - "description": "Specifies a Boolean value that indicates if the name is available." - }, - "name": { - "type": "string", - "description": "The name that was checked." - }, - "message": { - "type": "string", - "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." - } - }, - "description": "The result returned from a check name availability request." - }, - "ListResourceSkusResult": { - "description": "List of available SKUs for an existing Kusto Cluster.", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { "$ref": "#/definitions/AzureResourceSku" }, - "description": "The collection of available SKUs for an existing resource." - } - } - }, - "ListSkusResult": { - "description": "List of available SKUs for a new Kusto Cluster.", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { "$ref": "#/definitions/AzureSku" }, - "description": "The collection of available SKUs for new resources." - } - } - }, - "CloudErrorBody": { - "x-ms-external": true, - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for displaying in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from Kusto." - }, - "OperationListResult": { - "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "title": "The list of operations supported by the resource provider." - }, - "nextLink": { - "type": "string", - "title": "The URL to get the next set of operation list results if there are any." - } - } - }, - "Operation": { - "title": "A REST API operation", - "type": "object", - "properties": { - "name": { - "title": "The operation name.", - "description": "This is of the format {provider}/{resource}/{operation}.", - "type": "string" - }, - "display": { - "title": "The object that describes the operation.", - "properties": { - "provider": { - "title": "Friendly name of the resource provider.", - "type": "string" + "definitions": { + "ClusterProperties": { + "properties": { + "state": { + "type": "string", + "readOnly": true, + "description": "The state of the resource.", + "enum": [ + "Creating", + "Unavailable", + "Running", + "Deleting", + "Deleted", + "Stopping", + "Stopped", + "Starting", + "Updating" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed", + "Moving" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "uri": { + "type": "string", + "readOnly": true, + "description": "The cluster URI." + }, + "dataIngestionUri": { + "type": "string", + "readOnly": true, + "description": "The cluster data ingestion URI." + }, + "trustedExternalTenants": { + "type": "array", + "items": { + "$ref": "#/definitions/TrustedExternalTenant" + }, + "description": "The cluster's external tenants." + }, + "intelligentAutoscale": { + "$ref": "#/definitions/intelligentAutoscale", + "description": "Intelligent auto scale definition." + } + }, + "description": "Class representing the Kusto cluster properties." + }, + "TrustedExternalTenant": { + "properties": { + "value": { + "type": "string", + "description": "GUID representing an external tenant." + } }, - "operation": { - "title": "The operation type.", - "description": "For example: read, write, delete.", - "type": "string" + "description": "Represents a tenant ID that is trusted by the cluster." + }, + "AzureResourceSku": { + "properties": { + "resourceType": { + "type": "string", + "description": "Resource Namespace and Type." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU details." + }, + "capacity": { + "$ref": "#/definitions/AzureCapacity", + "description": "The SKU capacity." + } }, - "resource": { - "title": "The resource type on which the operation is performed.", - "type": "string" + "description": "Azure resource SKU definition." + }, + "AzureCapacity": { + "type": "object", + "required": [ + "minimum", + "maximum", + "default", + "scaleType" + ], + "properties": { + "scaleType": { + "description": "Scale type.", + "type": "string", + "enum": [ + "automatic", + "manual", + "none" + ], + "x-ms-enum": { + "name": "AzureScaleType", + "modelAsString": true + } + }, + "minimum": { + "description": "Minimum allowed capacity.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed capacity.", + "type": "integer" + }, + "default": { + "description": "The default capacity that would be used.", + "type": "integer" + } }, - "description": { - "title": "The friendly name of the operation.", - "type": "string" + "description": "Azure capacity definition." + }, + "SkuDescriptionList": { + "description": "The list of the EngagementFabric SKU descriptions", + "type": "object", + "properties": { + "value": { + "description": "SKU descriptions", + "type": "array", + "items": { + "$ref": "#/definitions/SkuDescription" + }, + "readOnly": true + } + } + }, + "SkuDescription": { + "description": "The Kusto SKU description of given resource type", + "type": "object", + "properties": { + "resourceType": { + "description": "The resource type", + "type": "string", + "readOnly": true + }, + "name": { + "description": "The name of the SKU", + "type": "string", + "readOnly": true + }, + "tier": { + "description": "The tier of the SKU", + "type": "string", + "readOnly": true + }, + "locations": { + "description": "The set of locations that the SKU is available", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "locationInfo": { + "description": "Locations and zones", + "type": "array", + "items": { + "$ref": "#/definitions/SkuLocationInfoItem" + }, + "readOnly": true + }, + "restrictions": { + "description": "The restrictions because of which SKU cannot be used", + "type": "array", + "items": { + "type": "object" + }, + "readOnly": true + } + } + }, + "SkuLocationInfoItem": { + "description": "The locations and zones info for SKU.", + "type": "object", + "required": [ + "location" + ], + "properties": { + "location": { + "description": "The available location of the SKU.", + "type": "string" + }, + "zones": { + "description": "The available zone of the SKU.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AzureSku": { + "type": "object", + "required": [ + "name", + "tier" + ], + "properties": { + "name": { + "description": "SKU name.", + "type": "string", + "enum": [ + "Standard_DS13_v2+1TB_PS", + "Standard_DS13_v2+2TB_PS", + "Standard_DS14_v2+3TB_PS", + "Standard_DS14_v2+4TB_PS", + "Standard_D13_v2", + "Standard_D14_v2", + "Standard_L8s", + "Standard_L16s", + "Standard_D11_v2", + "Standard_D12_v2", + "Standard_L4s" + ], + "x-ms-enum": { + "name": "AzureSkuName", + "modelAsString": true + } + }, + "capacity": { + "description": "SKU capacity.", + "type": "integer" + }, + "tier": { + "description": "SKU tier.", + "type": "string", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "AzureSkuTier", + "modelAsString": true + } + } + }, + "description": "Azure SKU definition." + }, + "intelligentAutoscale": { + "type": "object", + "required": [ + "version", + "minimum", + "maximum" + ], + "properties": { + "version": { + "description": "The version of the template defined, for instance 1.", + "type": "integer" + }, + "minimum": { + "description": "Minimum allowed capacity.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed capacity.", + "type": "integer" + } + }, + "description": "A class that contains the intelligent auto scale definition." + }, + "DatabaseStatistics": { + "type": "object", + "readOnly": true, + "properties": { + "size": { + "type": "number", + "description": "The database size - the total size of compressed data and index in bytes." + } + }, + "description": "A class that contains database statistics information." + }, + "DatabaseProperties": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed", + "Moving" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "softDeletePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept before it stops being accessible to queries in TimeSpan." + }, + "hotCachePeriod": { + "type": "string", + "format": "duration", + "description": "The time the data should be kept in cache for fast queries in TimeSpan." + }, + "statistics": { + "$ref": "#/definitions/DatabaseStatistics", + "description": "The statistics of the database." + } + }, + "description": "Class representing the Kusto database properties." + }, + "EventHubConnectionProperties": { + "properties": { + "eventHubResourceId": { + "type": "string", + "description": "The resource ID of the event hub to be used to create a data connection." + }, + "consumerGroup": { + "type": "string", + "description": "The event hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "$ref": "#/definitions/DataFormat", + "description": "The data format of the message. Optionally the data format can be added to each message." + } + }, + "required": [ + "eventHubResourceId", + "consumerGroup" + ], + "description": "Class representing the Kusto event hub connection properties." + }, + "DataFormat": { + "description": "The data format of the message. Optionally the data format can be added to each message.", + "type": "string", + "enum": [ + "MULTIJSON", + "JSON", + "CSV", + "TSV", + "SCSV", + "SOHSV", + "PSV", + "TXT", + "RAW", + "SINGLEJSON", + "AVRO" + ], + "x-ms-enum": { + "name": "dataFormat", + "modelAsString": true + } + }, + "EventGridConnectionProperties": { + "properties": { + "storageAccountResourceId": { + "type": "string", + "description": "The resource ID of the storage account where the data resides." + }, + "eventHubResourceId": { + "type": "string", + "description": "The resource ID where the event grid is configured to send events." + }, + "consumerGroup": { + "type": "string", + "description": "The event hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "$ref": "#/definitions/DataFormat", + "description": "The data format of the message. Optionally the data format can be added to each message." + } + }, + "required": [ + "storageAccountResourceId", + "eventHubResourceId", + "consumerGroup", + "tableName", + "dataFormat" + ], + "description": "Class representing the Kusto event grid connection properties." + }, + "Cluster": { + "required": [ + "sku" + ], + "properties": { + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties", + "description": "The cluster properties." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Class representing a Kusto cluster." + }, + "ClusterUpdate": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The cluster properties.", + "$ref": "#/definitions/ClusterProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto cluster." + }, + "Database": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The database properties.", + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing a Kusto database." + }, + "DatabaseUpdate": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of the updated database.", + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto database." + }, + "DatabasePrincipal": { + "type": "object", + "required": [ + "name", + "role", + "type" + ], + "properties": { + "role": { + "description": "Database principal role.", + "type": "string", + "enum": [ + "Admin", + "Ingestor", + "Monitor", + "User", + "UnrestrictedViewers", + "Viewer" + ], + "x-ms-enum": { + "name": "DatabasePrincipalRole", + "modelAsString": true + } + }, + "name": { + "description": "Database principal name.", + "type": "string" + }, + "type": { + "description": "Database principal type.", + "type": "string", + "enum": [ + "App", + "Group", + "User" + ], + "x-ms-enum": { + "name": "DatabasePrincipalType", + "modelAsString": true + } + }, + "fqn": { + "description": "Database principal fully qualified name.", + "type": "string" + }, + "email": { + "description": "Database principal email if exists.", + "type": "string" + }, + "appId": { + "description": "Application id - relevant only for application principal type.", + "type": "string" + } + }, + "description": "A class representing database principal entity." + }, + "ClusterListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + }, + "description": "The list of Kusto clusters." + } + }, + "description": "The list Kusto clusters operation response." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of Kusto databases." + } + }, + "description": "The list Kusto databases operation response." + }, + "DatabasePrincipalListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation response." + }, + "DataConnection": { + "required": [ + "kind" + ], + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "kind": { + "description": "Kind of the endpoint for the data connection", + "enum": [ + "EventHub", + "EventGrid" + ], + "type": "string", + "x-ms-enum": { + "name": "Kind", + "modelAsString": true + } + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing an data connection.", + "discriminator": "kind" + }, + "DataConnectionValidationResult": { + "type": "object", + "properties": { + "errorMessage": { + "type": "string", + "description": "A message which indicates a problem in data connection validation." + } + }, + "description": "The result returned from a data connection validation request." + }, + "DatabasePrincipalListRequest": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation request." + }, + "DataConnectionValidation": { + "properties": { + "dataConnectionName": { + "type": "string", + "description": "The name of the data connection." + }, + "properties": { + "$ref": "#/definitions/DataConnection", + "description": "The data connection properties to validate." + } + }, + "description": "Class representing an data connection validation." + }, + "EventHubDataConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The Event Hub data connection properties to validate.", + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DataConnection" + } + ], + "description": "Class representing an event hub data connection.", + "x-ms-discriminator-value": "EventHub" + }, + "EventGridDataConnection": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "The properties of the Event Grid data connection.", + "$ref": "#/definitions/EventGridConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/DataConnection" + } + ], + "description": "Class representing an Event Grid data connection.", + "x-ms-discriminator-value": "EventGrid" + }, + "DataConnectionValidationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DataConnectionValidationResult" + }, + "description": "The list of Kusto data connection validation errors." + } + }, + "description": "The list Kusto data connection validation result." + }, + "DataConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DataConnection" + }, + "description": "The list of Kusto data connections." + } + }, + "description": "The list Kusto data connections operation response." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody", + "description": "An error response from Kusto." + } + }, + "description": "An error response from Kusto." + }, + "ClusterCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Cluster name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a cluster check name availability request." + }, + "DatabaseCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Database name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a database check name availability request." + }, + "DataConnectionCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Data Connection name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases/dataConnections" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases/dataConnections." + } + }, + "required": [ + "name", + "type" + ], + "description": "The result returned from a data connections check name availability request." + }, + "CheckNameResult": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Specifies a Boolean value that indicates if the name is available." + }, + "name": { + "type": "string", + "description": "The name that was checked." + }, + "message": { + "type": "string", + "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." + } + }, + "description": "The result returned from a check name availability request." + }, + "CheckNameAvailabilityResult": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "string", + "enum": [ + "Available", + "NotAvailable" + ], + "x-ms-enum": { + "name": "nameAvailable", + "modelAsString": true + }, + "description": "Specifies whether or not the name is available." + }, + "name": { + "type": "string", + "description": "The name that was checked." + }, + "message": { + "type": "string", + "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." + } + }, + "description": "The result returned from a check name availability request." + }, + "ListResourceSkusResult": { + "description": "List of available SKUs for a Kusto Cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "$ref": "#/definitions/AzureResourceSku" }, + "description": "The collection of available SKUs for an existing resource." + } } - } }, - "origin": { - "title": "The intended executor of the operation.", - "type": "string" + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for displaying in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from Kusto." + }, + "OperationListResult": { + "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "title": "The list of operations supported by the resource provider." + }, + "nextLink": { + "type": "string", + "title": "The URL to get the next set of operation list results if there are any." + } + } }, - "properties": { - "title": "Properties of the operation.", - "type": "object", - "x-ms-client-flatten": true + "Operation": { + "title": "A REST API operation", + "type": "object", + "properties": { + "name": { + "title": "The operation name.", + "description": "This is of the format {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "title": "The object that describes the operation.", + "properties": { + "provider": { + "title": "Friendly name of the resource provider.", + "type": "string" + }, + "operation": { + "title": "The operation type.", + "description": "For example: read, write, delete.", + "type": "string" + }, + "resource": { + "title": "The resource type on which the operation is performed.", + "type": "string" + }, + "description": { + "title": "The friendly name of the operation.", + "type": "string" + } + } + }, + "origin": { + "title": "The intended executor of the operation.", + "type": "string" + }, + "properties": { + "title": "Properties of the operation.", + "type": "object", + "x-ms-client-flatten": true + } + } } - } - } - }, + }, "parameters": { "SubscriptionIdParameter": { "name": "subscriptionId",