From f0cc6af14d9544f85c634b5a61a6806af42f442d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 25 Apr 2023 23:41:02 +0000 Subject: [PATCH] CodeGen from PR 23725 in Azure/azure-rest-api-specs Merge f1dc7b106672d82e95ee76c748815490af4d26bd into 84113e300ebbd2e804f000b73b522ffd8acedd4a --- .../Microsoft.AzureSphere.json | 719 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 18 + 2 files changed, 737 insertions(+) create mode 100644 schemas/2022-09-01-preview/Microsoft.AzureSphere.json diff --git a/schemas/2022-09-01-preview/Microsoft.AzureSphere.json b/schemas/2022-09-01-preview/Microsoft.AzureSphere.json new file mode 100644 index 0000000000..6771f564b2 --- /dev/null +++ b/schemas/2022-09-01-preview/Microsoft.AzureSphere.json @@ -0,0 +1,719 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AzureSphere", + "description": "Microsoft AzureSphere Resource Types", + "resourceDefinitions": { + "catalogs": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9_-]{1,50}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Name of catalog" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/CatalogProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Catalog properties" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/catalogs_images_childResource" + }, + { + "$ref": "#/definitions/catalogs_products_childResource" + } + ] + } + }, + "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.AzureSphere/catalogs" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs" + }, + "catalogs_images": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Image name. Use .default for image creation." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ImageProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of image" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureSphere/catalogs/images" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/images" + }, + "catalogs_products": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[\\w][\\w\\s]{1,48}[\\w]$|^\\.default$|^\\.unassigned$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Name of product." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ProductProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of product" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/catalogs_products_deviceGroups_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureSphere/catalogs/products" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products" + }, + "catalogs_products_deviceGroups": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9]{1,2}$|^[A-Za-z0-9][A-Za-z0-9\\s]{1,48}[A-Za-z0-9]$|^\\.default$|^\\.unassigned$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Name of device group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeviceGroupProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of deviceGroup" + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/catalogs_products_deviceGroups_deployments_childResource" + }, + { + "$ref": "#/definitions/catalogs_products_deviceGroups_devices_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureSphere/catalogs/products/deviceGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products/deviceGroups" + }, + "catalogs_products_deviceGroups_deployments": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Deployment name. Use .default for deployment creation and to get the current deployment for the associated device group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of deployment" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureSphere/catalogs/products/deviceGroups/deployments" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products/deviceGroups/deployments" + }, + "catalogs_products_deviceGroups_devices": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{128}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Device name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeviceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of device" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureSphere/catalogs/products/deviceGroups/devices" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products/deviceGroups/devices" + } + }, + "definitions": { + "CatalogProperties": { + "type": "object", + "properties": {}, + "description": "Catalog properties" + }, + "catalogs_images_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Image name. Use .default for image creation." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ImageProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of image" + }, + "type": { + "type": "string", + "enum": [ + "images" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/images" + }, + "catalogs_products_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[\\w][\\w\\s]{1,48}[\\w]$|^\\.default$|^\\.unassigned$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Name of product." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ProductProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of product" + }, + "type": { + "type": "string", + "enum": [ + "products" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products" + }, + "catalogs_products_deviceGroups_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[A-Za-z0-9]{1,2}$|^[A-Za-z0-9][A-Za-z0-9\\s]{1,48}[A-Za-z0-9]$|^\\.default$|^\\.unassigned$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Name of device group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeviceGroupProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of deviceGroup" + }, + "type": { + "type": "string", + "enum": [ + "deviceGroups" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products/deviceGroups" + }, + "catalogs_products_deviceGroups_deployments_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "type": "string", + "description": "Deployment name. Use .default for deployment creation and to get the current deployment for the associated device group." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeploymentProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of deployment" + }, + "type": { + "type": "string", + "enum": [ + "deployments" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products/deviceGroups/deployments" + }, + "catalogs_products_deviceGroups_devices_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-01-preview" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9-]{128}$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Device name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/DeviceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of device" + }, + "type": { + "type": "string", + "enum": [ + "devices" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureSphere/catalogs/products/deviceGroups/devices" + }, + "DeploymentProperties": { + "type": "object", + "properties": { + "deployedImages": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/Image" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Images deployed" + }, + "deploymentId": { + "type": "string", + "description": "Deployment ID" + } + }, + "description": "The properties of deployment" + }, + "DeviceGroupProperties": { + "type": "object", + "properties": { + "allowCrashDumpsCollection": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Flag to define if the user allows for crash dump collection." + }, + "description": { + "type": "string", + "description": "Description of the device group." + }, + "osFeedType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Retail", + "RetailEval" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Operating system feed type of the device group." + }, + "regionalDataBoundary": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "EU" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Regional data boundary for the device group." + }, + "updatePolicy": { + "oneOf": [ + { + "type": "string", + "enum": [ + "UpdateAll", + "No3rdPartyAppUpdates" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Update policy of the device group." + } + }, + "description": "The properties of deviceGroup" + }, + "DeviceProperties": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "description": "Device ID" + } + }, + "description": "The properties of device" + }, + "Image": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ImageProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The properties of image" + } + }, + "description": "An image resource belonging to a catalog resource." + }, + "ImageProperties": { + "type": "object", + "properties": { + "image": { + "type": "string", + "description": "Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads." + }, + "imageId": { + "type": "string", + "description": "Image ID" + }, + "regionalDataBoundary": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "EU" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Regional data boundary for an image." + } + }, + "description": "The properties of image" + }, + "ProductProperties": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Description of the product" + } + }, + "required": [ + "description" + ], + "description": "The properties of product" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 640ebad7f8..1f38145597 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -3964,6 +3964,24 @@ { "$ref": "https://schema.management.azure.com/schemas/2019-07-24-preview/Microsoft.AzureData.json#/resourceDefinitions/sqlServerRegistrations_sqlServers" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs_images" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs_products" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs_products_deviceGroups" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs_products_deviceGroups_deployments" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-01-preview/Microsoft.AzureSphere.json#/resourceDefinitions/catalogs_products_deviceGroups_devices" + }, { "$ref": "https://schema.management.azure.com/schemas/2016-01-01/Microsoft.AzureStack.json#/resourceDefinitions/registrations" },