From 426eee41035f5cedbe3964e1690d041359491c47 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 14 Sep 2021 01:03:11 +0000 Subject: [PATCH] CodeGen from PR 16008 in Azure/azure-rest-api-specs fix(arcdata): incorrect .net sdk path (#16008) Current .net SDK path for arcdata points to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/resources which is for `Resources`. This commit will change the path to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/azurearcdata --- .../Microsoft.AzureArcData.json | 828 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 12 + 2 files changed, 840 insertions(+) create mode 100644 schemas/2021-07-01-preview/Microsoft.AzureArcData.json diff --git a/schemas/2021-07-01-preview/Microsoft.AzureArcData.json b/schemas/2021-07-01-preview/Microsoft.AzureArcData.json new file mode 100644 index 0000000000..856a645d31 --- /dev/null +++ b/schemas/2021-07-01-preview/Microsoft.AzureArcData.json @@ -0,0 +1,828 @@ +{ + "id": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.AzureArcData.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AzureArcData", + "description": "Microsoft AzureArcData Resource Types", + "resourceDefinitions": { + "dataControllers": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-07-01-preview" + ] + }, + "extendedLocation": { + "oneOf": [ + { + "$ref": "#/definitions/ExtendedLocation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The complex type of the extended location." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DataControllerProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The data controller 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.AzureArcData/dataControllers" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureArcData/dataControllers" + }, + "postgresInstances": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-07-01-preview" + ] + }, + "extendedLocation": { + "oneOf": [ + { + "$ref": "#/definitions/ExtendedLocation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The complex type of the extended location." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "Name of PostgresInstance" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PostgresInstanceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Postgres Instance properties." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/PostgresInstanceSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource model definition representing SKU for Azure Database for PostgresSQL - Azure Arc" + }, + "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.AzureArcData/postgresInstances" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureArcData/postgresInstances" + }, + "sqlManagedInstances": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-07-01-preview" + ] + }, + "extendedLocation": { + "oneOf": [ + { + "$ref": "#/definitions/ExtendedLocation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The complex type of the extended location." + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of SQL Managed Instances" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SqlManagedInstanceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of sqlManagedInstance." + }, + "sku": { + "oneOf": [ + { + "$ref": "#/definitions/SqlManagedInstanceSku" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The resource model definition representing SKU for Azure Managed Instance - Azure Arc" + }, + "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.AzureArcData/sqlManagedInstances" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureArcData/sqlManagedInstances" + }, + "sqlServerInstances": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2021-07-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of SQL Server Instance" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SqlServerInstanceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties of SqlServerInstance." + }, + "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.AzureArcData/sqlServerInstances" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureArcData/sqlServerInstances" + } + }, + "definitions": { + "BasicLoginInformation": { + "type": "object", + "properties": { + "password": { + "type": "string", + "description": "Login password." + }, + "username": { + "type": "string", + "description": "Login username." + } + }, + "description": "Username and password for basic login authentication." + }, + "DataControllerProperties": { + "type": "object", + "properties": { + "basicLoginInformation": { + "oneOf": [ + { + "$ref": "#/definitions/BasicLoginInformation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Username and password for basic login authentication." + }, + "infrastructure": { + "oneOf": [ + { + "type": "string", + "enum": [ + "azure", + "gcp", + "aws", + "alibaba", + "onpremises", + "other" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The infrastructure the data controller is running on." + }, + "k8sRaw": { + "type": "object", + "properties": {}, + "description": "The raw kubernetes information" + }, + "lastUploadedDate": { + "type": "string", + "format": "date-time", + "description": "Last uploaded date from Kubernetes cluster. Defaults to current date time" + }, + "logAnalyticsWorkspaceConfig": { + "oneOf": [ + { + "$ref": "#/definitions/LogAnalyticsWorkspaceConfig" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Log analytics workspace id and primary key" + }, + "onPremiseProperty": { + "oneOf": [ + { + "$ref": "#/definitions/OnPremiseProperty" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties from the Kubernetes data controller" + }, + "uploadServicePrincipal": { + "oneOf": [ + { + "$ref": "#/definitions/UploadServicePrincipal" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Service principal for uploading billing, metrics and logs." + }, + "uploadWatermark": { + "oneOf": [ + { + "$ref": "#/definitions/UploadWatermark" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Properties on upload watermark. Mostly timestamp for each upload data type" + } + }, + "description": "The data controller properties." + }, + "ExtendedLocation": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "CustomLocation" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The type of the extended location." + } + }, + "description": "The complex type of the extended location." + }, + "LogAnalyticsWorkspaceConfig": { + "type": "object", + "properties": { + "primaryKey": { + "type": "string", + "description": "Primary key of the workspace" + }, + "workspaceId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Azure Log Analytics workspace ID" + } + }, + "description": "Log analytics workspace id and primary key" + }, + "OnPremiseProperty": { + "type": "object", + "properties": { + "id": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "A globally unique ID identifying the associated Kubernetes cluster" + }, + "publicSigningKey": { + "type": "string", + "description": "Certificate that contains the Kubernetes cluster public key used to verify signing" + }, + "signingCertificateThumbprint": { + "type": "string", + "description": "Unique thumbprint returned to customer to verify the certificate being uploaded" + } + }, + "required": [ + "id", + "publicSigningKey" + ], + "description": "Properties from the Kubernetes data controller" + }, + "PostgresInstanceProperties": { + "type": "object", + "properties": { + "admin": { + "type": "string", + "description": "The instance admin" + }, + "basicLoginInformation": { + "oneOf": [ + { + "$ref": "#/definitions/BasicLoginInformation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Username and password for basic login authentication." + }, + "dataControllerId": { + "type": "string", + "description": "The data controller id" + }, + "k8sRaw": { + "type": "object", + "properties": {}, + "description": "The raw kubernetes information" + }, + "lastUploadedDate": { + "type": "string", + "format": "date-time", + "description": "Last uploaded date from Kubernetes cluster. Defaults to current date time" + } + }, + "description": "Postgres Instance properties." + }, + "PostgresInstanceSku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted." + }, + "dev": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose. " + }, + "family": { + "type": "string", + "description": "If the service has different generations of hardware, for the same SKU, then that can be captured here." + }, + "name": { + "type": "string", + "description": "The name of the SKU. It is typically a letter+number code" + }, + "size": { + "type": "string", + "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. " + }, + "tier": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Hyperscale" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "This field is required to be implemented by the Resource Provider if the service has more than one tier." + } + }, + "required": [ + "name" + ], + "description": "The resource model definition representing SKU for Azure Database for PostgresSQL - Azure Arc" + }, + "SqlManagedInstanceProperties": { + "type": "object", + "properties": { + "admin": { + "type": "string", + "description": "The instance admin user" + }, + "basicLoginInformation": { + "oneOf": [ + { + "$ref": "#/definitions/BasicLoginInformation" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Username and password for basic login authentication." + }, + "dataControllerId": { + "type": "string", + "description": "null" + }, + "endTime": { + "type": "string", + "description": "The instance end time" + }, + "k8sRaw": { + "type": "object", + "properties": {}, + "description": "The raw kubernetes information" + }, + "lastUploadedDate": { + "type": "string", + "format": "date-time", + "description": "Last uploaded date from Kubernetes cluster. Defaults to current date time" + }, + "licenseType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "BasePrice", + "LicenseIncluded" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The license type to apply for this managed instance." + }, + "startTime": { + "type": "string", + "description": "The instance start time" + } + }, + "description": "Properties of sqlManagedInstance." + }, + "SqlManagedInstanceSku": { + "type": "object", + "properties": { + "capacity": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "dev": { + "oneOf": [ + { + "type": "boolean", + "default": true + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether dev/test is enabled. When the dev field is set to true, the resource is used for dev/test purpose. " + }, + "family": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string", + "enum": [ + "vCore" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SKU." + }, + "size": { + "type": "string", + "description": "The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. " + }, + "tier": { + "oneOf": [ + { + "type": "string", + "enum": [ + "GeneralPurpose", + "BusinessCritical" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The tier for this managed instance." + } + }, + "required": [ + "name" + ], + "description": "The resource model definition representing SKU for Azure Managed Instance - Azure Arc" + }, + "SqlServerInstanceProperties": { + "type": "object", + "properties": { + "azureDefenderStatus": { + "type": "string", + "description": "Status of Azure Defender." + }, + "azureDefenderStatusLastUpdated": { + "type": "string", + "format": "date-time", + "description": "Timestamp of last Azure Defender status update." + }, + "collation": { + "type": "string", + "description": "SQL Server collation." + }, + "containerResourceId": { + "type": "string", + "description": "ARM Resource id of the container resource (Azure Arc for Servers)." + }, + "currentVersion": { + "type": "string", + "description": "SQL Server current version." + }, + "edition": { + "type": "string", + "description": "SQL Server edition." + }, + "instanceName": { + "type": "string", + "description": "SQL Server instance name." + }, + "licenseType": { + "type": "string", + "description": "SQL Server license type." + }, + "patchLevel": { + "type": "string", + "description": "SQL Server update level." + }, + "productId": { + "type": "string", + "description": "SQL Server product ID." + }, + "status": { + "type": "string", + "description": "The cloud connectivity status." + }, + "tcpDynamicPorts": { + "type": "string", + "description": "Dynamic TCP ports used by SQL Server." + }, + "tcpStaticPorts": { + "type": "string", + "description": "Static TCP ports used by SQL Server." + }, + "vCore": { + "type": "string", + "description": "The number of logical processors used by the SQL Server instance." + }, + "version": { + "type": "string", + "description": "SQL Server version." + } + }, + "required": [ + "containerResourceId", + "status" + ], + "description": "Properties of SqlServerInstance." + }, + "UploadServicePrincipal": { + "type": "object", + "properties": { + "authority": { + "type": "string", + "description": "Authority for the service principal. Example: https://login.microsoftonline.com/" + }, + "clientId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Client ID of the service principal for uploading data." + }, + "clientSecret": { + "type": "string", + "description": "Secret of the service principal" + }, + "tenantId": { + "oneOf": [ + { + "type": "string", + "pattern": "^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Tenant ID of the service principal." + } + }, + "description": "Service principal for uploading billing, metrics and logs." + }, + "UploadWatermark": { + "type": "object", + "properties": { + "logs": { + "type": "string", + "format": "date-time", + "description": "Last uploaded date for logs from kubernetes cluster. Defaults to current date time" + }, + "metrics": { + "type": "string", + "format": "date-time", + "description": "Last uploaded date for metrics from kubernetes cluster. Defaults to current date time" + }, + "usages": { + "type": "string", + "format": "date-time", + "description": "Last uploaded date for usages from kubernetes cluster. Defaults to current date time" + } + }, + "description": "Properties on upload watermark. Mostly timestamp for each upload data type" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 390e82b0b4..a557ef04d1 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -1957,6 +1957,18 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.AzureArcData.json#/resourceDefinitions/sqlServerInstances" }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.AzureArcData.json#/resourceDefinitions/dataControllers" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.AzureArcData.json#/resourceDefinitions/postgresInstances" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.AzureArcData.json#/resourceDefinitions/sqlManagedInstances" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2021-07-01-preview/Microsoft.AzureArcData.json#/resourceDefinitions/sqlServerInstances" + }, { "$ref": "https://schema.management.azure.com/schemas/2021-08-01/Microsoft.AzureArcData.json#/resourceDefinitions/dataControllers" },