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 May 31, 2024
1 parent 87bbe9f commit e820879
Show file tree
Hide file tree
Showing 58 changed files with 886 additions and 473 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 Down
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 Down
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",
"resource": {
"properties": {
"spec": {
Expand Down Expand Up @@ -152,21 +152,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 Down Expand Up @@ -268,21 +268,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 Down
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 Down
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 Down Expand Up @@ -94,21 +94,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 Down
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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,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 Down
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",
"properties": {
"identity": {
"type": "None",
Expand Down Expand Up @@ -120,21 +120,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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$",
"nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$",
"hcpOpenShiftClusterName": "hcpCluster-name",
"nodePoolName": "nodePool-name",
"resource": {
"properties": {
"spec": {
Expand Down Expand Up @@ -34,7 +34,11 @@
"ufrvhxdwltr"
],
"taints": [
"yzmuazkxmfhksrjm"
{
"key": "iveofwsptzsxepyfirlfypshvkgzkpfdwrpreacacbcifrzpvmgmovnpmkeqxgvamtbwqfewlrnlcqcmbnqhdgvosyxazqxwtlcviveerkvdrveayeyvasngwjmrsnhyvmayzrndwahvuoocvbqjuscmybctzhrhbotipnrwhnkhejgiuanmidrdjetccddupjtvvztlbwlgdxgdwlhxdlluvcduh",
"value": "x",
"effect": "NoSchedule"
}
],
"tuningConfigs": [
"m"
Expand Down Expand Up @@ -81,7 +85,7 @@
"key7212": "uufkzlwqnoxdfihpqz"
},
"location": "mqewzbuvnyxnwbmir",
"id": "ogtjdgogxemijejkai",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "riywfucwvfwoepzliopnphdfjw",
"type": "znmdhkzcopsephiyom",
"systemData": {
Expand Down Expand Up @@ -130,7 +134,7 @@
"key7212": "uufkzlwqnoxdfihpqz"
},
"location": "mqewzbuvnyxnwbmir",
"id": "ogtjdgogxemijejkai",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "riywfucwvfwoepzliopnphdfjw",
"type": "znmdhkzcopsephiyom",
"systemData": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$",
"nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name",
"nodePoolName": "nodePool-name"
},
"responses": {
"202": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$",
"nodePoolName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name",
"nodePoolName": "nodepool-name"
},
"responses": {
"200": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"key7212": "uufkzlwqnoxdfihpqz"
},
"location": "mqewzbuvnyxnwbmir",
"id": "ogtjdgogxemijejkai",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "riywfucwvfwoepzliopnphdfjw",
"type": "znmdhkzcopsephiyom",
"systemData": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"api-version": "2024-06-10-preview",
"subscriptionId": "F64FF5E2-2AD0-4E4D-A9D5-6E88511247A7",
"resourceGroupName": "rgopenapi",
"hcpOpenShiftClusterName": "Replace this value with a string matching RegExp ^[a-zA-Z0-9-]{3,24}$"
"hcpOpenShiftClusterName": "hcpCluster-name"
},
"responses": {
"200": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"key7212": "uufkzlwqnoxdfihpqz"
},
"location": "mqewzbuvnyxnwbmir",
"id": "ogtjdgogxemijejkai",
"id": "/subscriptions/FDEA43EA-0230-4A7D-BDEE-F3AFF2183B1D/resourceGroups/resourceGroupName/providers/Microsoft.RedHatOpenShift/resourceType/resourceName",
"name": "riywfucwvfwoepzliopnphdfjw",
"type": "znmdhkzcopsephiyom",
"systemData": {
Expand Down
Loading

0 comments on commit e820879

Please sign in to comment.