From a9467d555fd4502ca59a8c01d03fa60f282c04dc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 6 Dec 2022 05:42:32 +0000 Subject: [PATCH] CodeGen from PR 21248 in Azure/azure-rest-api-specs Merge 47715094dea15eafdc0ad2f8087daad65e39c220 into ad793510b0ec98c8eb45bca6608639c527a94389 --- .../2022-09-04/Microsoft.RedHatOpenShift.json | 872 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 15 + 2 files changed, 887 insertions(+) create mode 100644 schemas/2022-09-04/Microsoft.RedHatOpenShift.json diff --git a/schemas/2022-09-04/Microsoft.RedHatOpenShift.json b/schemas/2022-09-04/Microsoft.RedHatOpenShift.json new file mode 100644 index 0000000000..1773caca68 --- /dev/null +++ b/schemas/2022-09-04/Microsoft.RedHatOpenShift.json @@ -0,0 +1,872 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-09-04/Microsoft.RedHatOpenShift.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.RedHatOpenShift", + "description": "Microsoft RedHatOpenShift Resource Types", + "resourceDefinitions": { + "openShiftClusters": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "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]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the OpenShift cluster resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/OpenShiftClusterProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "OpenShiftClusterProperties represents an OpenShift cluster's properties." + }, + "resources": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/openshiftclusters_machinePool_childResource" + }, + { + "$ref": "#/definitions/openshiftclusters_secret_childResource" + }, + { + "$ref": "#/definitions/openshiftclusters_syncIdentityProvider_childResource" + }, + { + "$ref": "#/definitions/openshiftclusters_syncSet_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.RedHatOpenShift/openShiftClusters" + ] + } + }, + "required": [ + "apiVersion", + "location", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openShiftClusters" + }, + "openshiftclusters_machinePool": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the MachinePool resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MachinePoolProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "MachinePoolProperties represents the properties of a MachinePool" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.RedHatOpenShift/openshiftclusters/machinePool" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/machinePool" + }, + "openshiftclusters_secret": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Secret resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SecretProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SecretProperties represents the properties of a Secret" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.RedHatOpenShift/openshiftclusters/secret" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/secret" + }, + "openshiftclusters_syncIdentityProvider": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SyncIdentityProvider resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SyncIdentityProviderProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SyncSetProperties represents the properties of a SyncSet" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.RedHatOpenShift/openshiftclusters/syncIdentityProvider" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/syncIdentityProvider" + }, + "openshiftclusters_syncSet": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SyncSet resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SyncSetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SyncSetProperties represents the properties of a SyncSet" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.RedHatOpenShift/openshiftclusters/syncSet" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/syncSet" + } + }, + "definitions": { + "APIServerProfile": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP of the cluster API server." + }, + "url": { + "type": "string", + "description": "The URL to access the cluster API server." + }, + "visibility": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Private", + "Public" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "API server visibility." + } + }, + "description": "APIServerProfile represents an API server profile." + }, + "ClusterProfile": { + "type": "object", + "properties": { + "domain": { + "type": "string", + "description": "The domain for the cluster." + }, + "fipsValidatedModules": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "If FIPS validated crypto modules are used." + }, + "pullSecret": { + "type": "string", + "description": "The pull secret for the cluster." + }, + "resourceGroupId": { + "type": "string", + "description": "The ID of the cluster resource group." + }, + "version": { + "type": "string", + "description": "The version of the cluster." + } + }, + "description": "ClusterProfile represents a cluster profile." + }, + "ConsoleProfile": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "The URL to access the cluster console." + } + }, + "description": "ConsoleProfile represents a console profile." + }, + "IngressProfile": { + "type": "object", + "properties": { + "ip": { + "type": "string", + "description": "The IP of the ingress." + }, + "name": { + "type": "string", + "description": "The ingress profile name." + }, + "visibility": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Private", + "Public" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Ingress visibility." + } + }, + "description": "IngressProfile represents an ingress profile." + }, + "MachinePoolProperties": { + "type": "object", + "properties": { + "resources": { + "type": "string" + } + }, + "description": "MachinePoolProperties represents the properties of a MachinePool" + }, + "MasterProfile": { + "type": "object", + "properties": { + "diskEncryptionSetId": { + "type": "string", + "description": "The resource ID of an associated DiskEncryptionSet, if applicable." + }, + "encryptionAtHost": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether master virtual machines are encrypted at host." + }, + "subnetId": { + "type": "string", + "description": "The Azure resource ID of the master subnet." + }, + "vmSize": { + "type": "string", + "description": "VM size availability varies by region.\nIf a node contains insufficient compute resources (memory, cpu, etc.), pods might fail to run correctly.\nFor more details on restricted VM sizes, see: https://docs.microsoft.com/en-us/azure/openshift/support-policies-v4#supported-virtual-machine-sizes" + } + }, + "description": "MasterProfile represents a master profile." + }, + "NetworkProfile": { + "type": "object", + "properties": { + "podCidr": { + "type": "string", + "description": "The CIDR used for OpenShift/Kubernetes Pods." + }, + "serviceCidr": { + "type": "string", + "description": "The CIDR used for OpenShift/Kubernetes Services." + } + }, + "description": "NetworkProfile represents a network profile." + }, + "OpenShiftClusterProperties": { + "type": "object", + "properties": { + "apiserverProfile": { + "oneOf": [ + { + "$ref": "#/definitions/APIServerProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "APIServerProfile represents an API server profile." + }, + "clusterProfile": { + "oneOf": [ + { + "$ref": "#/definitions/ClusterProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ClusterProfile represents a cluster profile." + }, + "consoleProfile": { + "oneOf": [ + { + "$ref": "#/definitions/ConsoleProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ConsoleProfile represents a console profile." + }, + "ingressProfiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/IngressProfile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The cluster ingress profiles." + }, + "masterProfile": { + "oneOf": [ + { + "$ref": "#/definitions/MasterProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "MasterProfile represents a master profile." + }, + "networkProfile": { + "oneOf": [ + { + "$ref": "#/definitions/NetworkProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "NetworkProfile represents a network profile." + }, + "provisioningState": { + "oneOf": [ + { + "type": "string", + "enum": [ + "AdminUpdating", + "Creating", + "Deleting", + "Failed", + "Succeeded", + "Updating" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The cluster provisioning state." + }, + "servicePrincipalProfile": { + "oneOf": [ + { + "$ref": "#/definitions/ServicePrincipalProfile" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "ServicePrincipalProfile represents a service principal profile." + }, + "workerProfiles": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/WorkerProfile" + } + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The cluster worker profiles." + } + }, + "description": "OpenShiftClusterProperties represents an OpenShift cluster's properties." + }, + "openshiftclusters_machinePool_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the MachinePool resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/MachinePoolProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "MachinePoolProperties represents the properties of a MachinePool" + }, + "type": { + "type": "string", + "enum": [ + "machinePool" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/machinePool" + }, + "openshiftclusters_secret_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the Secret resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SecretProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SecretProperties represents the properties of a Secret" + }, + "type": { + "type": "string", + "enum": [ + "secret" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/secret" + }, + "openshiftclusters_syncIdentityProvider_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SyncIdentityProvider resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SyncIdentityProviderProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SyncSetProperties represents the properties of a SyncSet" + }, + "type": { + "type": "string", + "enum": [ + "syncIdentityProvider" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/syncIdentityProvider" + }, + "openshiftclusters_syncSet_childResource": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2022-09-04" + ] + }, + "name": { + "oneOf": [ + { + "type": "string", + "pattern": "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]*[a-zA-Z0-9]$", + "minLength": 1, + "maxLength": 63 + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The name of the SyncSet resource." + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/SyncSetProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "SyncSetProperties represents the properties of a SyncSet" + }, + "type": { + "type": "string", + "enum": [ + "syncSet" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.RedHatOpenShift/openshiftclusters/syncSet" + }, + "SecretProperties": { + "type": "object", + "properties": { + "secretResources": { + "type": "string", + "description": "The Secrets Resources." + } + }, + "description": "SecretProperties represents the properties of a Secret" + }, + "ServicePrincipalProfile": { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "The client ID used for the cluster." + }, + "clientSecret": { + "type": "string", + "description": "The client secret used for the cluster." + } + }, + "description": "ServicePrincipalProfile represents a service principal profile." + }, + "SyncIdentityProviderProperties": { + "type": "object", + "properties": { + "resources": { + "type": "string" + } + }, + "description": "SyncSetProperties represents the properties of a SyncSet" + }, + "SyncSetProperties": { + "type": "object", + "properties": { + "resources": { + "type": "string", + "description": "Resources represents the SyncSets configuration." + } + }, + "description": "SyncSetProperties represents the properties of a SyncSet" + }, + "WorkerProfile": { + "type": "object", + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The number of worker VMs." + }, + "diskEncryptionSetId": { + "type": "string", + "description": "The resource ID of an associated DiskEncryptionSet, if applicable." + }, + "diskSizeGB": { + "oneOf": [ + { + "type": "integer" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The disk size of the worker VMs." + }, + "encryptionAtHost": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Whether master virtual machines are encrypted at host." + }, + "name": { + "type": "string", + "description": "The worker profile name." + }, + "subnetId": { + "type": "string", + "description": "The Azure resource ID of the worker subnet." + }, + "vmSize": { + "type": "string", + "description": "VM size availability varies by region.\nIf a node contains insufficient compute resources (memory, cpu, etc.), pods might fail to run correctly.\nFor more details on restricted VM sizes, see: https://docs.microsoft.com/en-us/azure/openshift/support-policies-v4#supported-virtual-machine-sizes" + } + }, + "description": "WorkerProfile represents a worker profile." + } + } +} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index 707b7359f1..5f43388d55 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -23386,6 +23386,21 @@ { "$ref": "https://schema.management.azure.com/schemas/2022-04-01/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openShiftClusters" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-04/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openShiftClusters" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-04/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openshiftclusters_machinePool" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-04/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openshiftclusters_secret" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-04/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openshiftclusters_syncIdentityProvider" + }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-09-04/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openshiftclusters_syncSet" + }, { "$ref": "https://schema.management.azure.com/schemas/2016-07-01/Microsoft.Relay.json#/resourceDefinitions/namespaces" },