From 29c474a8a8dfd1700ab8f313aac9764f35e19d82 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 30 Sep 2022 19:19:39 +0000 Subject: [PATCH] CodeGen from PR 20924 in Azure/azure-rest-api-specs Merge 69eaf3018dc0429c3fab306a5c828e05c53673aa into 812592d05854e761c71f3ba67227e66175d6e7a9 --- .../2022-10-01/Microsoft.AzureStackHCI.json | 513 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 9 + 2 files changed, 522 insertions(+) create mode 100644 schemas/2022-10-01/Microsoft.AzureStackHCI.json diff --git a/schemas/2022-10-01/Microsoft.AzureStackHCI.json b/schemas/2022-10-01/Microsoft.AzureStackHCI.json new file mode 100644 index 0000000000..3ff34f833f --- /dev/null +++ b/schemas/2022-10-01/Microsoft.AzureStackHCI.json @@ -0,0 +1,513 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.AzureStackHCI.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.AzureStackHCI", + "description": "Microsoft AzureStackHCI Resource Types", + "resourceDefinitions": { + "clusters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-01" + ] + }, + "identity": { + "oneOf": [ + { + "$ref": "#/definitions/ManagedServiceIdentity" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "description": "The name of the cluster." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Cluster properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/clusters_arcSettings_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.AzureStackHCI/clusters" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters" + }, + "clusters_arcSettings": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the proxy resource holding details of HCI ArcSetting information." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArcSettingProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ArcSetting properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/clusters_arcSettings_extensions_childResource" + } + ] + } + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureStackHCI/clusters/arcSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings" + }, + "clusters_arcSettings_extensions": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the machine extension." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of Arc Extension for a particular node in HCI Cluster." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.AzureStackHCI/clusters/arcSettings/extensions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions" + } + }, + "definitions": { + "ArcSettingProperties": { + "type": "object", + "properties": { + "arcApplicationClientId": { + "type": "string", + "description": "App id of arc AAD identity." + }, + "arcApplicationObjectId": { + "type": "string", + "description": "Object id of arc AAD identity." + }, + "arcApplicationTenantId": { + "type": "string", + "description": "Tenant id of arc AAD identity." + }, + "arcInstanceResourceGroup": { + "type": "string", + "description": "The resource group that hosts the Arc agents, ie. Hybrid Compute Machine resources." + }, + "arcServicePrincipalObjectId": { + "type": "string", + "description": "Object id of arc AAD service principal." + }, + "connectivityProperties": { + "type": "object", + "properties": {}, + "description": "contains connectivity related configuration for ARC resources" + } + }, + "description": "ArcSetting properties." + }, + "ClusterDesiredProperties": { + "type": "object", + "properties": { + "diagnosticLevel": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Off", + "Basic", + "Enhanced" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Desired level of diagnostic data emitted by the cluster." + }, + "windowsServerSubscription": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Desired state of Windows Server Subscription." + } + }, + "description": "Desired properties of the cluster." + }, + "ClusterProperties": { + "type": "object", + "properties": { + "aadApplicationObjectId": { + "type": "string", + "description": "Object id of cluster AAD identity." + }, + "aadClientId": { + "type": "string", + "description": "App id of cluster AAD identity." + }, + "aadServicePrincipalObjectId": { + "type": "string", + "description": "Id of cluster identity service principal." + }, + "aadTenantId": { + "type": "string", + "description": "Tenant id of cluster AAD identity." + }, + "cloudManagementEndpoint": { + "type": "string", + "description": "Endpoint configured for management from the Azure portal." + }, + "desiredProperties": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterDesiredProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Desired properties of the cluster." + }, + "softwareAssuranceProperties": { + "oneOf": [ + { + "$ref": "#/definitions/SoftwareAssuranceProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Software Assurance properties of the cluster." + } + }, + "description": "Cluster properties." + }, + "clusters_arcSettings_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the proxy resource holding details of HCI ArcSetting information." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ArcSettingProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ArcSetting properties." + }, + "type": { + "type": "string", + "enum": [ + "arcSettings" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings" + }, + "clusters_arcSettings_extensions_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-10-01" + ] + }, + "name": { + "type": "string", + "description": "The name of the machine extension." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of Arc Extension for a particular node in HCI Cluster." + }, + "type": { + "type": "string", + "enum": [ + "extensions" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.AzureStackHCI/clusters/arcSettings/extensions" + }, + "ExtensionParameters": { + "type": "object", + "properties": { + "autoUpgradeMinorVersion": { + "oneOf": [ + { + "type": "boolean" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "protectedSettings": { + "type": "object", + "properties": {}, + "description": "Protected settings (may contain secrets)." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "settings": { + "type": "object", + "properties": {}, + "description": "Json formatted public settings for the extension." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + } + }, + "description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute." + }, + "ExtensionProperties": { + "type": "object", + "properties": { + "extensionParameters": { + "oneOf": [ + { + "$ref": "#/definitions/ExtensionParameters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Describes the properties of a Machine Extension. This object mirrors the definition in HybridCompute." + } + }, + "description": "Status of Arc Extension for a particular node in HCI Cluster." + }, + "ManagedServiceIdentity": { + "type": "object", + "properties": { + "type": { + "oneOf": [ + { + "type": "string", + "enum": [ + "None", + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ] + }, + "userAssignedIdentities": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/UserAssignedIdentity" + }, + "properties": {} + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests." + } + }, + "required": [ + "type" + ], + "description": "Managed service identity (system assigned and/or user assigned identities)" + }, + "SoftwareAssuranceProperties": { + "type": "object", + "properties": { + "softwareAssuranceIntent": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enable", + "Disable" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Customer Intent for Software Assurance Benefit." + }, + "softwareAssuranceStatus": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Status of the Software Assurance for the cluster." + } + }, + "description": "Software Assurance properties of the cluster." + }, + "UserAssignedIdentity": { + "type": "object", + "properties": {}, + "description": "User assigned identity properties" + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 5870bd5c2e..100c1fa51c 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -3103,6 +3103,15 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-09-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters_arcSettings_extensions" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters_arcSettings" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-10-01/Microsoft.AzureStackHCI.json#/resourceDefinitions/clusters_arcSettings_extensions" + }, { "$ref": "https://schema.management.azure.com/schemas/2015-12-01/Microsoft.Batch.json#/resourceDefinitions/batchAccounts" },