Skip to content

Commit

Permalink
Prepare the api for ARM
Browse files Browse the repository at this point in the history
Move swagger to subfolder and create autorest
config readme files.

The folder structure is selected to match the
structure of the azure repository.
  • Loading branch information
petrkotas committed Jun 11, 2024
1 parent 87bbe9f commit 95cfab8
Show file tree
Hide file tree
Showing 62 changed files with 1,347 additions and 801 deletions.
2 changes: 1 addition & 1 deletion api/autorest-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
input-file: redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/preview/2024-06-10-preview/openapi.json
input-file: redhatopenshift/resource-manager/Microsoft.RedHatOpenshift/hcpclusters/preview/2024-06-10-preview/openapi.json
use:
# TODO: This is an old version. We should fix incompatibilities and remove this later
- "@autorest/[email protected]"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "HcpClusterVersionOperations_ListByLocation_Maximum",
"operationId": "HcpClusterVersionOperations_ListByLocation",
"title": "HcpClusterVersions_ListByLocation_Maximum",
"operationId": "HcpClusterVersions_ListByLocation",
"parameters": {
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
Expand All @@ -15,7 +15,7 @@
"provisioningState": "Succeeded",
"clusterVersion": "xkfddeiqkiqqkqzgnby"
},
"id": "pvhxaztlblmgvoyoeqczqf",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "mvugweyhywfyadmkhkzrlhoiscgfl",
"type": "by",
"systemData": {
Expand All @@ -32,4 +32,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "HcpClusterVersions_ListByLocation_Minimum",
"operationId": "HcpClusterVersions_ListByLocation",
"parameters": {
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
"location": "pdtzymgwqsbxy"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name"
},
"responses": {
"200": {
Expand All @@ -14,4 +14,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,22 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$",
"hcpOpenShiftClusterName": "hcpCluster-name",
"resource": {
"properties": {
"spec": {
"version": {
"id": "pvinporshxtqvnkr",
"channelGroup": "meqrztdrw"
"channelGroup": "stable",
"id": "4.12"
},
"dns": {
"baseDomainPrefix": "jcldjrtyebhrlxseuuhd"
},
"network": {
"networkType": "OVNKubernetes",
"podCidr": "hlfvrznsn",
"serviceCidr": "ittcodescilyiixnewchphuxxu",
"machineCidr": "cxglfwznjq",
"hostPrefix": 27
"podCidr": "10.128.0.0/14",
"serviceCidr": "172.30.0.0/16",
"machineCidr": "10.0.0.0/16"
},
"console": {},
"api": {
Expand All @@ -40,7 +39,7 @@
"managedResourceGroup": "nhyhywrxupo",
"subnetId": "kqujobzvoswldorx",
"outboundType": "loadBalancer",
"preconfiguredNsgs": true,
"networkSecurityGroupId": "groupid",
"etcdEncryptionSetId": "mrhumnvbsnnzduuhw"
},
"externalAuth": {
Expand Down Expand Up @@ -72,6 +71,7 @@
"provisioningState": "Succeeded",
"spec": {
"version": {
"channelGroup": "stable",
"availableUpgrades": [
"fpjxf"
]
Expand All @@ -80,7 +80,10 @@
"baseDomain": "yubrqcgqdhgqfkobjqm"
},
"network": {
"networkType": "OVNKubernetes"
"networkType": "OVNKubernetes",
"podCidr": "10.128.0.0/14",
"serviceCidr": "172.30.0.0/16",
"machineCidr": "10.0.0.0/16"
},
"console": {
"url": "ejgtgwbbvjtmzfqvldg"
Expand All @@ -100,10 +103,10 @@
"managedResourceGroup": "nhyhywrxupo",
"subnetId": "kqujobzvoswldorx",
"outboundType": "loadBalancer",
"preconfiguredNsgs": true,
"networkSecurityGroupId": "groupid",
"etcdEncryptionSetId": "mrhumnvbsnnzduuhw"
},
"issuerUrl": "pqfgpubcuaaovvpeqal",
"issuerUrl": "https://oidc.contoso.com",
"externalAuth": {
"externalAuths": [
{
Expand Down Expand Up @@ -152,21 +155,21 @@
}
},
"identity": {
"principalId": "xlswu",
"tenantId": "xfqisd",
"principalId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"type": "None",
"userAssignedIdentities": {
"key4794": {
"principalId": "uctdckatfraombzrbkdltewc",
"clientId": "auud"
"principalId": "00000000-0000-0000-0000-000000000000",
"clientId": "00000000-0000-0000-0000-000000000000"
}
}
},
"tags": {
"key4181": "leaswtidajsjtgmqawhdl"
},
"location": "ayecbdqonsqfowbq",
"id": "xioeiro",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "vuwzuwooutjavgdhoatz",
"type": "utiyj",
"systemData": {
Expand All @@ -188,6 +191,7 @@
"provisioningState": "Succeeded",
"spec": {
"version": {
"channelGroup": "stable",
"availableUpgrades": [
"fpjxf"
]
Expand All @@ -196,7 +200,10 @@
"baseDomain": "yubrqcgqdhgqfkobjqm"
},
"network": {
"networkType": "OVNKubernetes"
"networkType": "OVNKubernetes",
"podCidr": "10.128.0.0/14",
"serviceCidr": "172.30.0.0/16",
"machineCidr": "10.0.0.0/16"
},
"console": {
"url": "ejgtgwbbvjtmzfqvldg"
Expand All @@ -216,10 +223,10 @@
"managedResourceGroup": "nhyhywrxupo",
"subnetId": "kqujobzvoswldorx",
"outboundType": "loadBalancer",
"preconfiguredNsgs": true,
"networkSecurityGroupId": "groupid",
"etcdEncryptionSetId": "mrhumnvbsnnzduuhw"
},
"issuerUrl": "pqfgpubcuaaovvpeqal",
"issuerUrl": "https://oidc.contoso.com",
"externalAuth": {
"externalAuths": [
{
Expand Down Expand Up @@ -268,21 +275,21 @@
}
},
"identity": {
"principalId": "xlswu",
"tenantId": "xfqisd",
"principalId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"type": "None",
"userAssignedIdentities": {
"key4794": {
"principalId": "uctdckatfraombzrbkdltewc",
"clientId": "auud"
"principalId": "00000000-0000-0000-0000-000000000000",
"clientId": "00000000-0000-0000-0000-000000000000"
}
}
},
"tags": {
"key4181": "leaswtidajsjtgmqawhdl"
},
"location": "ayecbdqonsqfowbq",
"id": "xioeiro",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "vuwzuwooutjavgdhoatz",
"type": "utiyj",
"systemData": {
Expand All @@ -296,4 +303,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name"
},
"responses": {
"202": {
Expand All @@ -15,4 +15,4 @@
},
"204": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name"
},
"responses": {
"200": {
Expand All @@ -14,6 +14,7 @@
"provisioningState": "Succeeded",
"spec": {
"version": {
"channelGroup": "stable",
"availableUpgrades": [
"fpjxf"
]
Expand All @@ -22,7 +23,10 @@
"baseDomain": "yubrqcgqdhgqfkobjqm"
},
"network": {
"networkType": "OVNKubernetes"
"networkType": "OVNKubernetes",
"podCidr": "10.128.0.0/14",
"serviceCidr": "172.30.0.0/16",
"machineCidr": "10.0.0.0/16"
},
"console": {
"url": "ejgtgwbbvjtmzfqvldg"
Expand All @@ -42,7 +46,7 @@
"managedResourceGroup": "nhyhywrxupo",
"subnetId": "kqujobzvoswldorx",
"outboundType": "loadBalancer",
"preconfiguredNsgs": true,
"networkSecurityGroupId": "groupid",
"etcdEncryptionSetId": "mrhumnvbsnnzduuhw"
},
"issuerUrl": "pqfgpubcuaaovvpeqal",
Expand Down Expand Up @@ -94,21 +98,21 @@
}
},
"identity": {
"principalId": "xlswu",
"tenantId": "xfqisd",
"principalId": "00000000-0000-0000-0000-000000000000",
"tenantId": "00000000-0000-0000-0000-000000000000",
"type": "None",
"userAssignedIdentities": {
"key4794": {
"principalId": "uctdckatfraombzrbkdltewc",
"clientId": "auud"
"principalId": "00000000-0000-0000-0000-000000000000",
"clientId": "00000000-0000-0000-0000-000000000000"
}
}
},
"tags": {
"key4181": "leaswtidajsjtgmqawhdl"
},
"location": "ayecbdqonsqfowbq",
"id": "xioeiro",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "vuwzuwooutjavgdhoatz",
"type": "utiyj",
"systemData": {
Expand All @@ -122,4 +126,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name"
},
"responses": {
"200": {
"body": {}
}
}
}
}
Loading

0 comments on commit 95cfab8

Please sign in to comment.