From 60d9ea3e29c0aee0891b941fe5519427e1c105b6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 17 Nov 2020 08:08:49 +0000 Subject: [PATCH] CodeGen from PR 11649 in Azure/azure-rest-api-specs Merge 3a4d255511b2aedd33049b6bef976b2e56a43a69 into 0488372a3a5cd3b8ba8ea7a231c56e032e5473dc --- .../Microsoft.OperationalInsights.json | 2 +- .../Microsoft.OperationalInsights.json | 2 +- .../Microsoft.OperationalInsights.json | 13 +- .../Microsoft.OperationalInsights.json | 2 +- .../Microsoft.OperationalInsights.json | 13 +- .../Microsoft.OperationalInsights.json | 492 ++++++++++++++++++ 6 files changed, 497 insertions(+), 27 deletions(-) create mode 100644 schemas/2020-10-01/Microsoft.OperationalInsights.json diff --git a/schemas/2015-03-20/Microsoft.OperationalInsights.json b/schemas/2015-03-20/Microsoft.OperationalInsights.json index 760cea78e4..7885e7c56d 100644 --- a/schemas/2015-03-20/Microsoft.OperationalInsights.json +++ b/schemas/2015-03-20/Microsoft.OperationalInsights.json @@ -242,4 +242,4 @@ "description": "A tag of a saved search." } } -} \ No newline at end of file +} diff --git a/schemas/2015-11-01-preview/Microsoft.OperationalInsights.json b/schemas/2015-11-01-preview/Microsoft.OperationalInsights.json index d376dc0148..d0b818abfd 100644 --- a/schemas/2015-11-01-preview/Microsoft.OperationalInsights.json +++ b/schemas/2015-11-01-preview/Microsoft.OperationalInsights.json @@ -411,4 +411,4 @@ "description": "Microsoft.OperationalInsights/workspaces/linkedServices" } } -} \ No newline at end of file +} diff --git a/schemas/2019-08-01-preview/Microsoft.OperationalInsights.json b/schemas/2019-08-01-preview/Microsoft.OperationalInsights.json index 68d11d313b..b076073140 100644 --- a/schemas/2019-08-01-preview/Microsoft.OperationalInsights.json +++ b/schemas/2019-08-01-preview/Microsoft.OperationalInsights.json @@ -256,17 +256,6 @@ "DataExportProperties": { "type": "object", "properties": { - "allTables": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "When ‘true’, all workspace's tables are exported." - }, "createdDate": { "type": "string", "description": "The latest data export rule modification time." @@ -458,4 +447,4 @@ } } } -} \ No newline at end of file +} diff --git a/schemas/2020-03-01-preview/Microsoft.OperationalInsights.json b/schemas/2020-03-01-preview/Microsoft.OperationalInsights.json index d5afbad83a..44dca56e3d 100644 --- a/schemas/2020-03-01-preview/Microsoft.OperationalInsights.json +++ b/schemas/2020-03-01-preview/Microsoft.OperationalInsights.json @@ -1427,4 +1427,4 @@ "description": "Microsoft.OperationalInsights/workspaces/storageInsightConfigs" } } -} \ No newline at end of file +} diff --git a/schemas/2020-08-01/Microsoft.OperationalInsights.json b/schemas/2020-08-01/Microsoft.OperationalInsights.json index 891b259b2c..a541821b27 100644 --- a/schemas/2020-08-01/Microsoft.OperationalInsights.json +++ b/schemas/2020-08-01/Microsoft.OperationalInsights.json @@ -604,17 +604,6 @@ "DataExportProperties": { "type": "object", "properties": { - "allTables": { - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "When ‘true’, all workspace's tables are exported." - }, "createdDate": { "type": "string", "description": "The latest data export rule modification time." @@ -1436,4 +1425,4 @@ "description": "Microsoft.OperationalInsights/workspaces/storageInsightConfigs" } } -} \ No newline at end of file +} diff --git a/schemas/2020-10-01/Microsoft.OperationalInsights.json b/schemas/2020-10-01/Microsoft.OperationalInsights.json new file mode 100644 index 0000000000..4cc3eaa459 --- /dev/null +++ b/schemas/2020-10-01/Microsoft.OperationalInsights.json @@ -0,0 +1,492 @@ +{ + "id": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.OperationalInsights.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.OperationalInsights", + "description": "Microsoft OperationalInsights Resource Types", + "resourceDefinitions": { + "clusters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-10-01" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/Identity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Identity for the resource." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "minLength": 4, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Log Analytics cluster." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Cluster properties." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The cluster sku definition." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.OperationalInsights/clusters" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.OperationalInsights/clusters" + }, + "workspaces": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2020-10-01" + ] + }, + "eTag": { + "type": "string", + "description": "The ETag of the workspace." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "minLength": 4, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the workspace." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Workspace properties." + }, + "tags": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Resource tags." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.OperationalInsights/workspaces" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.OperationalInsights/workspaces" + } + }, + "definitions": { + "ClusterProperties": { + "type": "object", + "properties": { + "billingType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Cluster", + "Workspaces" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures whether billing will be only on the cluster or each workspace will be billed by its proportional use. This does not change the overall billing, only how it will be distributed. Default value is 'Cluster'." + }, + "isAvailabilityZonesEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Sets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be modified after cluster creation. Default value is 'true' if region supports Availability Zones." + }, + "isDoubleEncryptionEnabled": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true'" + }, + "keyVaultProperties": { + "oneOf": [ + { + "$ref": "#/definitions/KeyVaultProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The key vault properties." + } + }, + "description": "Cluster properties." + }, + "ClusterSku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The capacity value" + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "CapacityReservation" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SKU." + } + }, + "description": "The cluster sku definition." + }, + "Identity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SystemAssigned", + "UserAssigned", + "None" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities." + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserIdentityProperties" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "required": [ + "type" + ], + "description": "Identity for the resource." + }, + "KeyVaultProperties": { + "type": "object", + "properties": { + "keyName": { + "type": "string", + "description": "The name of the key associated with the Log Analytics cluster." + }, + "keyRsaSize": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Selected key minimum required size." + }, + "keyVaultUri": { + "type": "string", + "description": "The Key Vault uri which holds they key associated with the Log Analytics cluster." + }, + "keyVersion": { + "type": "string", + "description": "The version of the key associated with the Log Analytics cluster." + } + }, + "description": "The key vault properties." + }, + "UserIdentityProperties": { + "type": "object", + "properties": {}, + "description": "User assigned identity properties." + }, + "WorkspaceCapping": { + "type": "object", + "properties": { + "dailyQuotaGb": { + "oneOf": [ + { + "type": "number" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The workspace daily quota for ingestion." + } + }, + "description": "The daily volume cap for ingestion." + }, + "WorkspaceProperties": { + "type": "object", + "properties": { + "forceQueryCmk": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether customer managed storage is mandatory for query management." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Creating", + "Succeeded", + "Failed", + "Canceled", + "Deleting", + "ProvisioningAccount", + "Updating" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The provisioning state of the workspace." + }, + "publicNetworkAccessForIngestion": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Log Analytics ingestion." + }, + "publicNetworkAccessForQuery": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The network access type for accessing Log Analytics query." + }, + "retentionInDays": { + "oneOf": [ + { + "type": "integer", + "minimum": 30, + "maximum": 730 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The workspace data retention in days, between 30 and 730." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The SKU (tier) of a workspace." + }, + "workspaceCapping": { + "oneOf": [ + { + "$ref": "#/definitions/WorkspaceCapping" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The daily volume cap for ingestion." + } + }, + "description": "Workspace properties." + }, + "WorkspaceSku": { + "type": "object", + "properties": { + "capacityReservationLevel": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The capacity reservation level for this workspace, when CapacityReservation sku is selected." + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Free", + "Standard", + "Premium", + "PerNode", + "PerGB2018", + "Standalone", + "CapacityReservation" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SKU." + } + }, + "required": [ + "name" + ], + "description": "The SKU (tier) of a workspace." + } + } +}