From c994e1611ae0a66ebe5a8b8ed39453aa2a512517 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 27 Apr 2022 02:10:38 +0000 Subject: [PATCH] CodeGen from PR 18350 in Azure/azure-rest-api-specs Merge 99a22cee707605a406edfec88b5ec088429da91d into 731678aa0923415ebcb5fcead877a10244c2c629 --- .../2022-04-01/Microsoft.RedHatOpenShift.json | 413 ++++++++++++++++++ schemas/common/autogeneratedResources.json | 3 + 2 files changed, 416 insertions(+) create mode 100644 schemas/2022-04-01/Microsoft.RedHatOpenShift.json diff --git a/schemas/2022-04-01/Microsoft.RedHatOpenShift.json b/schemas/2022-04-01/Microsoft.RedHatOpenShift.json new file mode 100644 index 0000000000..68bf0f0b4f --- /dev/null +++ b/schemas/2022-04-01/Microsoft.RedHatOpenShift.json @@ -0,0 +1,413 @@ +{ + "id": "https://schema.management.azure.com/schemas/2022-04-01/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-04-01" + ] + }, + "location": { + "type": "string", + "description": "The geo-location where the resource lives" + }, + "name": { + "type": "string", + "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." + }, + "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" + } + }, + "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." + }, + "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." + }, + "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." + }, + "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 943875a255..42804778bd 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -12451,6 +12451,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2021-09-01-preview/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openShiftClusters" }, + { + "$ref": "https://schema.management.azure.com/schemas/2022-04-01/Microsoft.RedHatOpenShift.json#/resourceDefinitions/openShiftClusters" + }, { "$ref": "https://schema.management.azure.com/schemas/2016-07-01/Microsoft.Relay.json#/resourceDefinitions/namespaces" },